def METHOD_NAME(action, encoded_payload):
    logger.info(f"Lithops v{__version__} - Starting Code Engine (Job) execution")
    payload = b64str_to_dict(encoded_payload)
    setup_lithops_logger(payload['log_level'])
    if (action == 'metadata'):
        extract_runtime_metadata(payload)
        return {"Execution": "Finished"}
    job_index = int(os.environ['JOB_INDEX'])
    payload['JOB_INDEX'] = job_index
    logger.info(f"Action {action}. Job Index {job_index}")
    act_id = str(uuid.uuid4()).replace('-', '')[:12]
    os.environ['__LITHOPS_ACTIVATION_ID'] = act_id
    os.environ['__LITHOPS_BACKEND'] = 'Code Engine (Job)'
    chunksize = payload['chunksize']
    call_ids_ranges = [call_ids_range for call_ids_range in iterchunks(payload['call_ids'], chunksize)]
    call_ids = call_ids_ranges[job_index]
    data_byte_ranges = [payload['data_byte_ranges'][int(call_id)] for call_id in call_ids]
    payload['call_ids'] = call_ids
    payload['data_byte_ranges'] = data_byte_ranges
    function_handler(payload)
    return {"Execution": "Finished"}