import yaml


def parse_yaml_file(config_file):
    """
    Helper function, parsing all params from a YAML config file.

    Args:
      config_file (str): Path to the config file.
    """
    try:
        with open(config_file) as fd:
            return yaml.load(fd, Loader=yaml.FullLoader)
    except:
        raise IOError("We could not load or parse %s." % config_file)