code: def _update_task_args(cls, parser=None, subcommand=None):
      if running_remotely() or not cls._current_task or not cls._args:
          return
      args = {}
      args_type = {}
      have_config_file = False
      for k, v in cls._args.items():
          key_with_section = cls._section_name + cls._args_sep + k
          args[key_with_section] = v
          if k in cls._args_type:
              args_type[key_with_section] = cls._args_type[k]
              continue
          if (
              not verify_basic_type(
                  v, basic_types=(float, int, bool, str, type(None))
              )
              and v
          ):
              # noinspection PyBroadException
              try:
                  if isinstance(v, Namespace) or (
                      isinstance(v, list)
                      and all(
                          isinstance(sub_v, Namespace) for sub_v in v
                      )
                  ):
                      args[key_with_section] = json.dumps(
                          PatchJsonArgParse._handle_namespace(v)
                      )
                      args_type[
                          key_with_section
                      ] = PatchJsonArgParse.namespace_type
                  elif isinstance(v, Path) or (
                      isinstance(v, list)
                      and all(isinstance(sub_v, Path) for sub_v in v)
                  ):
                      args[key_with_section] = json.dumps(
                          PatchJsonArgParse._handle_path(v)
                      )
                      args_type[
                          key_with_section
                      ] = PatchJsonArgParse.path_type
                      have_config_file = True
                  else:
                      args[key_with_section] = str(v)
              except Exception:
                  pass
      cls._current_task._set_parameters(
          args, __update=True, __parameters_types=args_type
      )
      if have_config_file:
          cls._current_task.set_parameter(
              cls._section_name
              + cls._args_sep
              + cls._ignore_ui_overrides,
              False,
              description="If True, values in the config file will be overriden by values found in the UI. Otherwise, the values in the config file have priority",  # noqa
          )
  
imports: import json
  import logging
  from ..config import running_remotely, get_remote_task_id
  from .frameworks import _patched_call
  from ..utilities.proxy_object import verify_basic_type, flatten_dictionary
label_desc: Use image node_id 3 for calling the PatchJsonArgParse obj's underlying member method code with example usage: obj._update_task_args(cls, parser, subcommand) without return types