code: def get_model_conf_by_name(flags, conf):
      for name, model_conf in conf["models"].items():
          if not flags.model_name or name == flags.model_name:
              return model_conf
      return None
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import argparse
  import copy
  import numpy
  import shutil
  import tempfile
  from micro_converter import MicroConverter
  from py_proto import mace_pb2
  import run_target
  from utils import util
  from utils import device
  from utils import config_parser
  from utils.target import Target
  from utils.config_parser import ModelKeys
  from utils.util import MaceLogger
  from utils.util import mace_check
  import validate
  import layers_validate
label_desc: Use image node_id 3 for calling a global function with example usage: get_model_conf_by_name(flags, conf) and returns: None, model_conf