def METHOD_NAME(datadir):
    # This test is dedicated to validate the response of "load_grid_info" function
    # on a bogus catalog file. Retrieving the grid information with a non-existing
    # resolution string generates the "KeyError".
    res = "c12"
    catalog_path = os.path.join(datadir, "catalog_dummy.yaml")
    catalog = intake.open_catalog(catalog_path)
    with pytest.raises(KeyError):
        load_grid_info(catalog, res)