def get(configuration=None):
    if configuration is None:
        configuration = os.getenv(CONFIG_ENV_VAR)
    if configuration is None:
        if os.getenv('USER') == "ianozsvald":
            configuration = "deploy"
        elif os.getenv('USER') == "ian":
            configuration = "dev"
    #if configuration is None:
        #configuration = "dev"  # default

    # look through the available configurations, find the
    # match and instantiate it
    for c in configurations:
        if c.name == configuration:
            conf = c()
            return conf

    assert False, "You must choose a configuration"
Return a configuration based on name or environment variable
dataset/ETHPy150Open ianozsvald/learning_text_transformer/learning_text_transformer/config.py/get