def METHOD_NAME(cls, filename, *args, **kwargs):
    # This accepts a filename or a set of arguments and returns True or
    # False depending on if the file is of the type requested.
    try:
        fileh = h5py.File(filename, mode="r")
    except (ImportError, OSError):
        return False
    try:
        attrs = fileh.attrs
    except AttributeError:
        return False
    else:
        return (
            "bounds" in attrs
            and "domain" in attrs
            and attrs.get("data_type") != "yt_light_ray"
        )
    finally:
        fileh.close()