def _strict_mode_strategy(strict, config_file):
    """Decide how to set strict mode.
    If a value was provided -- always use it. Otherwise decide based
    on the existence of config_file.
    """
    if strict is not None:
        return strict
    return config_file is not None
