def _custom_import(module_name: str, *args, **kwargs) -> ModuleType:
        """
        If `torch_installed` is False, act as if PyTorch is not installed.
        """
        if module_name == "torch" and not torch_installed:
            raise ImportError('No module named "torch.')

        return original_import(module_name, *args, **kwargs)

        If `torch_installed` is False, act as if PyTorch is not installed.
        
llama-index-integrations/readers/llama-index-readers-file/tests/test_image_vision_llm.py