def initialize_collector(cls, name=None, configfile=None, handlers=[]):
    log = logging.getLogger('diamond')
    collector = None

    try:
        # Initialize Collector
        collector = cls(name=name, configfile=configfile, handlers=handlers)
    except Exception:
        # Log error
        log.error("Failed to initialize Collector: %s. %s",
                  cls.__name__, traceback.format_exc())

    # Return collector
    return collector
Check to see if a file storage is local.
dataset/ETHPy150Open BrightcoveOS/Diamond/src/diamond/utils/classes.py/initialize_collector--crossover with--dataset/ETHPy150Open SmileyChris/easy-thumbnails/easy_thumbnails/utils.py/is_storage_local