code: def _register_classes(
      registry: Any,
      method: str,
      module: ModuleType,
      parent: Type[object],
  ) -> None:
      for _, member in getmembers(module, isclass):
          if issubclass(member, parent) and is_overridden(
              method, member, parent
          ):
              register_fn = getattr(member, method)
              register_fn(registry)
  
file_path: pytorch-lightning/src/lightning/fabric/utilities/registry.py
imports: import logging
  from inspect import getmembers, isclass
  from types import ModuleType
  from typing import Any, List, Type, Union
  from lightning_utilities import is_overridden
  from lightning.fabric.utilities.imports import _PYTHON_GREATER_EQUAL_3_8_0, _PYTHON_GREATER_EQUAL_3_10_0
label_desc: Use image node_id 2 for calling a global function with example usage: _register_classes(registry, method, module, parent) without return types