code: def get_args():
      parser = argparse.ArgumentParser()
      parser.add_argument("--obj")
      parser.add_argument("--globals-lib")
      parser.add_argument("--lib", required=True)
      parser.add_argument("--arch", required=True)
      parser.add_argument("--build-root", default=None)
      parser.add_argument(
          "--with-own-obj", action="store_true", default=False
      )
      parser.add_argument(
          "--with-global-srcs", action="store_true", default=False
      )
  
      groups = {}
      args_list = groups.setdefault("default", [])
      for arg in pcf.iter_args(list(flt_args())):
          if arg == "--with-own-obj":
              groups["default"].append(arg)
          elif arg == "--globals-lib":
              groups["default"].append(arg)
          elif arg == "--with-global-srcs":
              groups["default"].append(arg)
          elif arg.startswith(YA_ARG_PREFIX):
              group_name = arg[len(YA_ARG_PREFIX) :]
              args_list = groups.setdefault(group_name, [])
          else:
              args_list.append(arg)
  
      return parser.parse_args(groups["default"]), groups
  
file_path: catboost/build/scripts/link_fat_obj.py
imports: import argparse
  import subprocess
  import sys
  import process_command_files
  from process_whole_archive_option import ProcessWholeArchiveOption
label_desc: Use image node_id 2 for calling a global function with example usage: get_args() and returns: parser,  groups