code: def task(config, mode):
      """get task object from register"""
      task_name = config["data"]["task"]["name"]
      logging.info("task == {}, mode == {}".format(task_name, mode))
      _task = registers.task[task_name](config, mode)
      return _task
  
imports: import os
  from absl import logging
  import numpy
  import delta.compat
  from tensorflow.python.client import device_lib
  from tensorflow.python.estimator.canned import metric_keys
  from tensorflow.python.util import nest
  from delta.utils.register import registers
label_desc: Use image node_id 6 for calling a global function with example usage: task(config, mode) and returns: _task