code: def _patched_task_function(
      task_function, a_config, *a_args, **a_kwargs
  ):
      from omegaconf import OmegaConf  # noqa
  
      if not running_remotely() or not PatchHydra._allow_omegaconf_edit:
          PatchHydra._register_omegaconf(a_config)
      else:
          # noinspection PyProtectedMember
          omega_yaml = PatchHydra._current_task._get_configuration_text(
              PatchHydra._config_section
          )
          a_config = OmegaConf.load(io.StringIO(omega_yaml))
          PatchHydra._register_omegaconf(a_config, is_read_only=False)
      return task_function(a_config, *a_args, **a_kwargs)
  
file_path: clearml/clearml/binding/hydra_bind.py
imports: import io
  import sys
  from functools import partial
  from ..config import running_remotely, get_remote_task_id, DEV_TASK_NO_REUSE
  from ..debugging.log import LoggerRoot
label_desc: Use image node_id 8 for calling the PatchHydra obj's underlying member method code with example usage: obj._patched_task_function(task_function, a_config) and returns: task_function