def get_test_module(test_file):
    """Get the module of a model test file."""
    test_module_path = get_module_path(test_file)
    test_module = importlib.import_module(test_module_path)

    return test_module
Get the module of a model test file.
dpkd/transformers/utils/get_test_info.py