code: def _args(**kwargs):
      return Namespace(
          # ATM duplicates definitions done by cmdline.main and
          # required by code logic to be defined. (should they?)
          #
          # TODO: The common options are now added by
          # cmdline.helpers.parser_add_common_options(), which can be reused by
          # tests.
          **updated(dict(common_result_renderer="generic"), kwargs)
      )
  
file_path: datalad/datalad/cli/tests/test_exec.py
imports: import argparse
  from argparse import Namespace
  import pytest
  from datalad.interface.base import Interface
  from datalad.support.param import Parameter
  from datalad.tests.utils_pytest import assert_not_in, eq_, patch_config
  from datalad.utils import updated
  from ..exec import _get_result_filter, call_from_parser
  from ..parser import parser_add_common_options, setup_parser_for_interface
label_desc: Use image node_id 1 for calling a global function with example usage: _args() and returns: Namespace