import yaml


def load_config(file):
    """Loads yaml config files

    Args:
        **file (str)**: File path and name

    Returns:
        A dictionary of configuration options
    """
    if file:
        with open(file, 'r') as f:
            return yaml.load(f, Loader=yaml.FullLoader)
    else:
        raise ValueError('file cannot be None or empty')