def METHOD_NAME():
    """Verifies that non-existent files fail before calling load_file."""
    flag = [False]
    class AssertiveLoader:
        extensions = ["test"]
        @staticmethod
        def load_file(path, options, record=None):
            flag[0] = True
            assert False, "should never get here"
    with registered_type(AssertiveLoader):
        model = Loader.get_global_ptr().load_sync("/non-existent", LoaderOptions(LoaderOptions.LF_no_cache))
        assert model is None
        assert not flag[0]