code: def vote_between_two_arch(
      arch1_info: dict, arch2_info: dict, metric: list, space: str
  ):
      """
      Return which architecture is better,
      :param arch1_info:
      :param arch2_info:
      :param metric:
      :param space:
      :return:
      """
      left_vote = 0
      right_vote = 0
      for m_name in metric:
          # if this metrics vote to left
          if vote_to_left[space](
              m_name,
              float(arch1_info["scores"][m_name]["score"]),
              float(arch2_info["scores"][m_name]["score"]),
          ):
              left_vote += 1
          else:
              right_vote += 1
  
      if left_vote > right_vote:
          return arch1_info["architecture_id"]
      else:
          return arch2_info["architecture_id"]
  
file_path: singa/examples/model_selection/TRAILS-Database-Native-Model-Selection/internal/ml/model_selection/src/eva_engine/phase1/vote.py
imports: from src.eva_engine.phase1.algo.alg_base import Evaluator
  from .utils.autograd_hacks import *
  from src.common.constant import Config
label_desc: Use image node_id 1 for calling a global function with example usage: vote_between_two_arch(arch1_info, arch2_info, metric, space) and returns: arch1_info, arch2_info