def load_all_subclasses(package_name):
    """
    Dynamically load all subclasses within a specified package,
    including those in its subdirectories.

    Args:
        package_name (str): The top-level package name to search for subclasses.
    """
    global _imported_modules
    package = importlib.import_module(package_name)
    for _, name, is_pkg in pkgutil.walk_packages(package.__path__, f"{package_name}."):
        logger.debug(f"Processing subclass: {name}, is package? -> {is_pkg}")
        if is_pkg:
            continue
        if name in _imported_modules:
            logger.debug(f"Skipping already imported module: {name}")
            continue
        try:
            importlib.import_module(name)
            _imported_modules.add(name)
            logger.debug(f"Imported module with name {name}")
        except ImportError as e:
            logger.error(f"Could not import module with {name}")

    Dynamically load all subclasses within a specified package,
    including those in its subdirectories.

    Args:
        package_name (str): The top-level package name to search for subclasses.
    
tests/compatibility_tests/compatibility_test_runner.py