def dataset_exists(name):
    """Checks if the dataset exists.

    Args:
        name: the name of the dataset

    Returns:
        True/False
    """
    conn = foo.get_db_conn()
    return bool(list(conn.datasets.find({"name": name}, {"_id": 1}).limit(1)))
Checks if the dataset exists.

    Args:
        name: the name of the dataset

    Returns:
        True/False
    
fiftyone/core/dataset.py