class_docstr: Command to run unit tests after in-place build
class_docstr_tok: ["Command","to","run","unit","tests","after","in-place","build"]
docstr: Install the requirements indicated by self.distribution and
  return an iterable of the dists that were built.
docstr_tok: ["Install","the","requirements","indicated","by","self.distribution","and","return","an","iterable","of","the","dists","that","were","built","."]
code: def install_dists(dist):
      """
      Install the requirements indicated by self.distribution and
      return an iterable of the dists that were built.
      """
      ir_d = dist.fetch_build_eggs(dist.install_requires)
      tr_d = dist.fetch_build_eggs(dist.tests_require or [])
      er_d = dist.fetch_build_eggs(
          v
          for k, v in dist.extras_require.items()
          if k.startswith(":") and evaluate_marker(k[1:])
      )
      return itertools.chain(ir_d, tr_d, er_d)
  
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 8 for calling the test obj's underlying member method code with example usage: obj.install_dists(dist) and returns: itertools