def update_instance(self, instance: Dict[(str, Any)]) -> Dict[(str, Any)]:
    data = instance['data']
    self.check_empty_datastore()
    if (not data):
        data = get_initial_data_file(INITIAL_DATA_FILE)
        instance['data'] = data
    checker = Checker(data=data, mode='all')
    try:
        checker.run_check()
    except CheckException as ce:
        raise ActionException(str(ce))
    return instance
def update_instance(self, instance: Dict[(str, Any)]) -> Dict[(str, Any)]:
    data = instance['data']
    self.check_empty_datastore()
    if (not data):
        data = get_initial_data_file(INITIAL_DATA_FILE)
        instance['data'] = data
    checker = Checker(data=data, mode='all')
    try:
        checker.run_check()
    except CheckException as ce:
        raise ActionException(str(ce))
    return instance