def METHOD_NAME(
    self,
    cls: type,
    as_nautilus: bool = False,
    metadata: Optional[dict] = None,
    **kwargs,
):
    data = self.query(cls=cls, **kwargs)
    if as_nautilus:
        if data is None:
            return []
        return [GenericData(data_type=DataType(cls, metadata=metadata), data=d) for d in data]
    return data