code: def main(argv):
      if len(argv) == 2 and not argv[1].startswith("-"):
          listClasses(argv[1])
          sys.exit(0)
  
      parser = argparse.ArgumentParser(
          description="Nipype interface runner", prog=argv[0]
      )
      parser.add_argument("module", type=str, help="Module name")
      parser.add_argument("interface", type=str, help="Interface name")
      parsed = parser.parse_args(args=argv[1:3])
  
      _, prog = os.path.split(argv[0])
      interface_parser = argparse.ArgumentParser(
          description="Run %s" % parsed.interface,
          prog=" ".join([prog] + argv[1:3]),
      )
      interface_parser, interface = add_options(
          interface_parser, parsed.module, parsed.interface
      )
      args = interface_parser.parse_args(args=argv[3:])
      run_instance(interface, args)
  
file_path: nipype/nipype/utils/nipype_cmd.py
imports: import os
  import argparse
  import inspect
  import sys
  from ..interfaces.base import Interface, InputMultiPath, traits
  from ..interfaces.base.support import get_trait_desc
  from .misc import str2bool
label_desc: Use image node_id 4 for calling a global function with example usage: main(argv) without return types