code: def __init__(
      self,
      distribution: "Distribution",
      project_cfg: dict,
      setuptools_cfg: dict,
  ):
      super().__init__(distribution)
      self._project_cfg = project_cfg
      self._setuptools_cfg = setuptools_cfg
  
imports: import logging
  import os
  from contextlib import contextmanager
  from functools import partial
  from typing import TYPE_CHECKING, Callable, Dict, Mapping, Optional, Set, Union
  from ..errors import FileError, InvalidConfigError
  from ..warnings import SetuptoolsWarning
  from .None import expand
  from ._apply_pyprojecttoml import _PREVIOUSLY_DEFINED, _MissingDynamic
  from ._apply_pyprojecttoml import apply
label_desc: Use image node_id 1 to create a new _EnsurePackagesDiscovered object from inherited base classes: _expand with example: obj = _EnsurePackagesDiscovered(distribution, project_cfg, setuptools_cfg)