def get_classes(version="v7", dataset_dir=None):
    """Gets the boxable classes that exist in classifications, detections,
    points, and relationships in the Open Images dataset.

    This method can be called in isolation without downloading the dataset.

    Args:
        version ("v7"): the version of the Open Images dataset. Supported
            values are ``("v6", "v7")``
        dataset_dir (None): an optional root directory the in which the dataset
            is downloaded

    Returns:
        a sorted list of class name strings
    """
    _verify_version(version)

    if dataset_dir is None:
        dataset_dir = os.path.join(
            fo.config.dataset_zoo_dir, "open-images-%s" % version
        )

    try:
        # Try to use already downloaded file
        classes_map, _ = _get_classes_map(dataset_dir, download=False)
    except:
        # Download file to temporary location
        with etau.TempDir() as tmp_dir:
            classes_map, _ = _get_classes_map(tmp_dir, download=True)

    return sorted(classes_map.values())
Gets the boxable classes that exist in classifications, detections,
    points, and relationships in the Open Images dataset.

    This method can be called in isolation without downloading the dataset.

    Args:
        version ("v7"): the version of the Open Images dataset. Supported
            values are ``("v6", "v7")``
        dataset_dir (None): an optional root directory the in which the dataset
            is downloaded

    Returns:
        a sorted list of class name strings
    
fiftyone/utils/openimages.py