def config_check(args, config, key):
    """ Take in the args, config, and returns the proper key.

    :param args:
    :param config:
    :param key:
    :return: value
    """
    value = args.get(key)
    if value is None:
        value = config.get(key)
    return value
