def METHOD_NAME(constant, config):
    if constant in config:
        return config[constant]
    else:
        if constant not in config_aliases:
            return None
        else:
            value = config_aliases[constant]
            for v in value:
                if v in config and config[v] != "":
                    return config[v]
            return None