def _load(self) -> None:
        """Load the module if it hasn't been loaded yet.

        This method is called internally when an attribute of the module is accessed for the first time. It attempts to
        import the module and raises an ImportError with a custom message if the module is not installed.
        """
        if not self.dev_dependency:
            if "--doctest-modules" in sys.argv:
                logger.info(f"Doctest detected, skipping loading of '{self.module_name}'")
                return
            try:
                if __sphinx_build__:  # type:ignore
                    logger.info(f"Sphinx detected, skipping loading of '{self.module_name}'")
                    return
            except NameError:
                pass

        if self.module is None:
            try:
                self.module = importlib.import_module(self.module_name)
            except ImportError as e:
                if kornia_config.lazyloader.installation_mode == InstallationMode.AUTO or self.auto_install:
                    self._install_package(self.module_name)
                elif kornia_config.lazyloader.installation_mode == InstallationMode.ASK:
                    to_ask = True
                    if_install = input(
                        f"Optional dependency '{self.module_name}' is not installed. "
                        "You may silent this prompt by `kornia_config.lazyloader.installation_mode = 'auto'`. "
                        "Do you wish to install the dependency? [Y]es, [N]o, [A]ll."
                    )
                    while to_ask:
                        if if_install.lower() == "y" or if_install.lower() == "yes":
                            self._install_package(self.module_name)
                            self.module = importlib.import_module(self.module_name)
                            to_ask = False
                        elif if_install.lower() == "a" or if_install.lower() == "all":
                            self.auto_install = True
                            self._install_package(self.module_name)
                            self.module = importlib.import_module(self.module_name)
                            to_ask = False
                        elif if_install.lower() == "n" or if_install.lower() == "no":
                            raise ImportError(
                                f"Optional dependency '{self.module_name}' is not installed. "
                                f"Please install it to use this functionality."
                            ) from e
                        else:
                            if_install = input("Invalid input. Please enter 'Y', 'N', or 'A'.")

                elif kornia_config.lazyloader.installation_mode == InstallationMode.RAISE:
                    raise ImportError(
                        f"Optional dependency '{self.module_name}' is not installed. "
                        f"Please install it to use this functionality."
                    ) from e
                self.module = importlib.import_module(self.module_name)
Load the module if it hasn't been loaded yet.

        This method is called internally when an attribute of the module is accessed for the first time. It attempts to
        import the module and raises an ImportError with a custom message if the module is not installed.
        
kornia/core/external.py