code: def get_candidates_data(self, candidates_wikidata_ids):
      candidates_rich = []
  
      for candidate in candidates_wikidata_ids:
          candidate_data = self.get_candidate_data_for_wikidata_id(
              candidate[0]
          )
  
          if candidate_data != None:
              candidate_data["p_e_m_score"] = candidate[2]
              candidates_rich.append(candidate_data)
  
      return candidates_rich
  
file_path: BLINK/blink/candidate_retrieval/candidate_generators.py
imports: import pysolr
  import sys
  import utils
label_desc: Use image node_id 2 for calling the Pregenerated_Candidates_Data_Fetcher obj's underlying member method code with example usage: obj.get_candidates_data(candidates_wikidata_ids) and returns: candidates_rich