code: def is_arch_and_alg_inside_data(self, arch_id, alg_name):
      if arch_id in self.data and alg_name in self.data[arch_id]:
          return True
      else:
          return False
  
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 4 for calling the ImgScoreQueryApi obj's underlying member method code with example usage: obj.is_arch_and_alg_inside_data(arch_id, alg_name) and returns: True, False