code: def get_wikidata_id_from_link_name(link):
      global linktitle2id
  
      if linktitle2id is None:
          path_to_file = "data/KB_data/linktitle2wikidataid.p"
          if os.path.isfile(path_to_file):
              linktitle2id = pickle.load(open(path_to_file, "rb"))
          else:
              subprocess.call(
                  "./blink/candidate_retrieval/scripts/generate_wiki2wikidata_mapping.sh"
              )
              linktitle2id = pickle.load(open(path_to_file, "rb"))
  
      return linktitle2id.get(link, None)
  
file_path: BLINK/blink/candidate_retrieval/utils.py
imports: import sys
  import pickle
  import subprocess
  import blink.candidate_retrieval.dataset
  import re
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: get_wikidata_id_from_link_name(link) and returns: linktitle2id