code: def load_candidate(path_to_candidate):
      """Load candidate data from a file.
      Args:path_to_candidate (str): path to file to load.
      Returns:qid_to_ranked_candidate_passages (dict): dictionary mapping from query_id (int) to a list of 1000 passage ids(int) ranked by relevance and importance
      """
  
      with open(path_to_candidate, "r") as f:
          qid_to_ranked_candidate_passages = load_candidate_from_stream(
              f
          )
      return qid_to_ranked_candidate_passages
  
file_path: FARM/farm/evaluation/msmarco_passage_official.py
imports: import sys
  import statistics
  from collections import Counter
label_desc: Use image node_id 4 for calling a global function with example usage: load_candidate(path_to_candidate) and returns: qid_to_ranked_candidate_passages