def METHOD_NAME(path: str, load_gold: bool = False):
    """
    Load gold file (test.jsonl) in a single dictionary, indexed by filename.
    :param path: Path to gold file
    :param load_gold: When evaluating gold hypotheses upper bound
    :return: Dictionary of gold examples
    """
    data_path = os.path.join(path)
    result = {}
    with open(data_path, "r") as f:
        lines = list(f)
        bar = Bar(message="Loading gold data", max=len(lines))
        for line in lines:
            example = json.loads(line)
            result.update(release2prediction(example, load_gold))
            bar.next()
        bar.finish()
    return result