def METHOD_NAME(
    create_module_loader, module_section, fallback_name, expected_exception
):
    # Arrange
    test_module_loader = create_module_loader()
    # Act
    with expected_exception:
        result_module = test_module_loader.get_module_from_file(
            module_section, "module", fallback_name
        )
        # Assert
        assert isinstance(result_module.register(), str)