code: def parser_add_common_opt(parser, opt, names=None, **kwargs):
      opt_tmpl = common_args[opt]
      opt_kwargs = opt_tmpl[1].copy()
      opt_kwargs.update(kwargs)
      if names is None:
          parser.add_argument(*opt_tmpl[0], **opt_kwargs)
      else:
          parser.add_argument(*names, **opt_kwargs)
  
imports: import argparse
  import logging
  import sys
  from collections import defaultdict
  from functools import partial
  from datalad import __version__
  from datalad.interface.base import get_cmd_doc, get_interface_groups, is_api_arg, load_interface
  from datalad.support.constraints import EnsureChoice
  from datalad.utils import getargspec
  from .common_args import common_args
  from .exec import call_from_parser
  from .helpers import get_commands_from_groups
  from .interface import alter_interface_docs_for_cmdline, get_cmd_ex, get_cmdline_command_name
label_desc: Use image node_id 9 for calling a global function with example usage: parser_add_common_opt(parser, opt, names) without return types