code: def get_candidate_generator(added_params):
      if added_params["candidate_generator_type"] == "p_e_m":
          if "p_e_m_data_path" in added_params:
              return FetchCandidateEntities(
                  added_params["p_e_m_data_path"]
              )
          else:
              return FetchCandidateEntities()
      else:
          pass
  
file_path: BLINK/blink/candidate_retrieval/dataset.py
imports: import re
  import pickle
  import os
  import time
  import numpy
label_desc: Use image node_id 7 for calling a global function with example usage: get_candidate_generator(added_params) and returns: FetchCandidateEntities, FetchCandidateEntities