def load_config():
    """Loads the FiftyOne config.

    Returns:
        a :class:`FiftyOneConfig` instance
    """
    config_path = locate_config()
    if os.path.isfile(config_path):
        return FiftyOneConfig.from_json(config_path)

    return FiftyOneConfig()
Loads the FiftyOne config.

    Returns:
        a :class:`FiftyOneConfig` instance
    
fiftyone/core/config.py