code: def _add_last_parsed_args(parser, parsed_args):
      if hasattr(parser, "_parsed_arg_string_lookup"):
          if isinstance(parsed_args, tuple):
              parsed_args_namespace = copy(parsed_args[0])
              parsed_args = (parsed_args_namespace, parsed_args[1])
          else:
              parsed_args_namespace = copy(parsed_args)
              parsed_args = (parsed_args_namespace, [])
  
          # cast arguments in parsed_args_namespace entries to str
          if parsed_args_namespace and isinstance(
              parsed_args_namespace, Namespace
          ):
              for (
                  k,
                  v,
              ) in parser._parsed_arg_string_lookup.items():  # noqa
                  if hasattr(parsed_args_namespace, k):
                      if isinstance(
                          getattr(parsed_args_namespace, k, None), list
                      ) and not isinstance(v, list):
                          v = [v]
                      setattr(
                          parsed_args_namespace,
                          k,
                          v if isinstance(v, list) else str(v),
                      )
  
      if (
          not PatchArgumentParser._last_parsed_args
          or parsed_args not in PatchArgumentParser._last_parsed_args
      ):
          PatchArgumentParser._last_parsed_args = (
              PatchArgumentParser._last_parsed_args or []
          ) + [parsed_args]
      return parsed_args
  
file_path: clearml/clearml/binding/args.py
imports: import sys
  import warnings
  from copy import copy
  from six import PY2
  from argparse import ArgumentParser, Namespace
label_desc: Use image node_id 5 for calling the PatchArgumentParser obj's underlying member method code with example usage: obj._add_last_parsed_args(parser, parsed_args) and returns: parsed_args