code: def cmd_from_args(args) -> Tuple[Union[Callable, str], List[str]]:
      # If ``args`` not passed, defaults to ``sys.argv[:1]``
      with_python = not args.no_python
      cmd: Union[Callable, str]
      cmd_args = []
      if with_python:
          cmd = os.getenv("PYTHON_EXEC", sys.executable)
          cmd_args.append("-u")
          if args.module:
              cmd_args.append("-m")
          cmd_args.append(args.script)
      else:
          if args.module:
              raise ValueError(
                  "Don't use both the '--no_python' flag"
                  " and the '--module' flag at the same time."
              )
          cmd = args.script
      cmd_args.extend(args.script_args)
  
      return cmd, cmd_args
  
file_path: pytorch-image-models/bulk_runner.py
imports: import argparse
  import os
  import sys
  import csv
  import json
  import subprocess
  import time
  from typing import Callable, List, Tuple, Union
  from timm.models import is_model, list_models, get_pretrained_cfg
label_desc: Use image node_id 1 for calling a global function with example usage: cmd_from_args(args) and returns: cmd,  cmd_args