code: def _import_modules(cls):
      cls.modules = []
      # TODO: remove?
      # base = import_module(cls.__base__.__module__)
  
      # Get types advertised through entry points!
      entry_point_iterable = (
          entry_points(
              group=cls.__name__
          )  # pylint: disable=unexpected-keyword-arg
          if sys.version_info >= (3, 10)
          else iter_entry_points(cls.__name__)
      )
      for entry_point in entry_point_iterable:
          entry_point.load()
          assert entry_point.dist is not None
          log.debug(
              "Found a %s %s from distribution: %s=%s",
              entry_point.name,
              cls.__name__,
              (
                  entry_point.dist.name
                  if sys.version_info >= (3, 10)
                  else entry_point.dist.project_name
              ),
              entry_point.dist.version,
          )
  
imports: from __future__ import annotations
  import hashlib
  import logging
  import os
  import signal
  import sys
  from abc import ABCMeta
  from collections import defaultdict
  from contextlib import contextmanager
  from glob import glob
  from importlib import import_module
  from tempfile import NamedTemporaryFile
  from typing import Generic, TypeVar
label_desc: Use image node_id 5 for calling a global function with example usage: _import_modules(cls) without return types