class_docstr: Command to run unit tests after in-place build
class_docstr_tok: ["Command","to","run","unit","tests","after","in-place","build"]
code: def run(self):
      self.announce(
          "WARNING: Testing via this command is deprecated and will be "
          "removed in a future version. Users looking for a generic test "
          "entry point independent of test runner are encouraged to use "
          "tox.",
          log.WARN,
      )
  
      installed_dists = self.install_dists(self.distribution)
  
      cmd = " ".join(self._argv)
      if self.dry_run:
          self.announce('skipping "%s" (dry run)' % cmd)
          return
  
      self.announce('running "%s"' % cmd)
  
      paths = map(operator.attrgetter("location"), installed_dists)
      with self.paths_on_pythonpath(paths):
          with self.project_on_sys_path():
              self.run_tests()
  
imports: import os
  import operator
  import sys
  import contextlib
  import itertools
  import unittest
  from distutils.errors import DistutilsError, DistutilsOptionError
  from distutils import log
  from unittest import TestLoader
  from pkg_resources import resource_listdir, resource_exists, normalize_path, working_set, evaluate_marker, add_activation_listener, require
  from .._importlib import metadata
  from setuptools import Command
  from setuptools.extern.more_itertools import unique_everseen
  from setuptools.extern.jaraco.functools import pass_none
label_desc: Use image node_id 9 for calling the test obj's underlying member method code with example usage: obj.run() without return types