def load_datasource(datasource, where=None):
    # check if it is a  wkt file
    if os.path.exists(os.path.abspath(datasource)):
        with open(os.path.abspath(datasource), 'r') as fp:
            data = fp.read(50)
        if data.lower().lstrip().startswith(('polygon', 'multipolygon')):
            return load_polygons(datasource)

    # otherwise pass to OGR
    return load_ogr_datasource(datasource, where=where)
Returns the default collector settings
dataset/ETHPy150Open omniscale/imposm/imposm/util/geom.py/load_datasource--crossover with--dataset/ETHPy150Open BrightcoveOS/Diamond/src/collectors/proc/proc.py/ProcessStatCollector.get_default_config