def _get_reference_metadata(jsons_list):
    """Gets metadata for a problem instance that the first json in the list refers to."""
    reference_json = jsons_list[0]
    problem_name = reference_json["problem_name"]
    graph_type = reference_json["graph_type"]
    p = reference_json["p"]

    return problem_name, graph_type, p