code: def api_get_score(self, arch_id: str, tfmem: str = None):
      # retrieve score from pre-scored file
      if tfmem is None:
          return self.data[arch_id]
      else:
          return {tfmem: float(self.data[arch_id][tfmem])}
  
imports: import os
  import random
  from src.common.constant import Config
  from src.tools.io_tools import read_json, write_json
  from src.query_api.singleton import Singleton
  from src.tools.io_tools import read_pickle
  from src.tools.compute import generate_global_rank
label_desc: Use image node_id 2 for calling the ImgScoreQueryApi obj's underlying member method code with example usage: obj.api_get_score(arch_id, tfmem) and returns: self, dict