code: def apply_cli_argspecs(parser, specs):
      processors = []
      for spec in specs:
          if callable(spec):
              procs = spec(parser)
              _add_procs(processors, procs)
          else:
              args, kwargs = spec
              parser.add_argument(args, kwargs)
      return processors
  
imports: import argparse
  import contextlib
  import logging
  import os
  import os.path
  import shutil
  import sys
  from .None import fsutil, strutil, iterutil, logging
label_desc: Use image node_id 8 for calling a global function with example usage: apply_cli_argspecs(parser, specs) and returns: processors