code: def set_default_config_value(nor_subgraph, model):
      if ModelKeys.quantize in model and model[ModelKeys.quantize] == 1:
          model[ModelKeys.data_type] = mace_pb2.DT_FLOAT
      if (
          ModelKeys.quantize in nor_subgraph
          and nor_subgraph[ModelKeys.quantize] == 1
      ):
          nor_subgraph[ModelKeys.data_type] = mace_pb2.DT_FLOAT
      elif ModelKeys.data_type not in nor_subgraph:
          if ModelKeys.data_type in model:
              nor_subgraph[ModelKeys.data_type] = model[
                  ModelKeys.data_type
              ]
          elif (
              ModelKeys.quantize in model
              and model[ModelKeys.quantize] == 1
          ):
              nor_subgraph[ModelKeys.data_type] = mace_pb2.DT_FLOAT
          else:
              nor_subgraph[ModelKeys.data_type] = mace_pb2.DT_HALF
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import re
  import os
  import copy
  import yaml
  from enum import Enum
  from utils import util
  from utils.util import mace_check
  from utils.util import MaceLogger
  from py_proto import mace_pb2
label_desc: Use image node_id 15 for calling a global function with example usage: set_default_config_value(nor_subgraph, model) without return types