def METHOD_NAME(_dict, name):
    """Verify the potential template is properly formatted."""
    assert (
        "name" in _dict
    ), f"Key name not found in the potential template {name}.json"
    assert (
        "expression" in _dict
    ), f"Key expression not found in the potential template {name}.json"
    assert (
        "independent_variables" in _dict
    ), f"Key independent_variables not found in the potential template {name}.json"
    if str(name) != _dict["name"]:
        raise GMSOError(
            f'Mismatch between Potential name {name} and {_dict["name"]}'
        )