code: def _run(self, metadata=None, **options):
      if metadata is None:
          metadata = {}
      pkg_info, dist = self.create_dist(**metadata)
      cmd = check(dist)
      cmd.initialize_options()
      for name, value in options.items():
          setattr(cmd, name, value)
      cmd.ensure_finalized()
      cmd.run()
      return cmd
  
file_path: catboost/contrib/tools/python/src/Lib/distutils/tests/test_check.py
imports: import textwrap
  import unittest
  from test.test_support import run_unittest
  from distutils.command.check import check, HAS_DOCUTILS
  from distutils.tests import support
  from distutils.errors import DistutilsSetupError
label_desc: Use image node_id 1 for calling the CheckTestCase obj's underlying member method code with example usage: obj._run(metadata) and returns: cmd