code: def patch_argparse():
      # make sure we only patch once
      if not sys.modules.get("argparse") or hasattr(
          sys.modules["argparse"].ArgumentParser, "_parse_args_patched"
      ):
          return
      # mark patched argparse
      sys.modules["argparse"].ArgumentParser._parse_args_patched = True
      # patch argparser
      PatchArgumentParser._original_parse_args = sys.modules[
          "argparse"
      ].ArgumentParser.parse_args
      PatchArgumentParser._original_parse_known_args = sys.modules[
          "argparse"
      ].ArgumentParser.parse_known_args
      PatchArgumentParser._original_add_subparsers = sys.modules[
          "argparse"
      ].ArgumentParser.add_subparsers
      sys.modules[
          "argparse"
      ].ArgumentParser.parse_args = PatchArgumentParser.parse_args
      sys.modules[
          "argparse"
      ].ArgumentParser.parse_known_args = (
          PatchArgumentParser.parse_known_args
      )
      sys.modules[
          "argparse"
      ].ArgumentParser.add_subparsers = (
          PatchArgumentParser.add_subparsers
      )
      if hasattr(sys.modules["argparse"].ArgumentParser, "_get_value"):
          PatchArgumentParser._original_get_value = sys.modules[
              "argparse"
          ].ArgumentParser._get_value
          sys.modules[
              "argparse"
          ].ArgumentParser._get_value = PatchArgumentParser._get_value
  
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 1 for calling a global function with example usage: patch_argparse() without return types