code: def get_data_type_by_value(value):
      data_type = value.dtype
      if data_type == np.float32:
          return mace_pb2.DT_FLOAT
      elif data_type == np.int32:
          return mace_pb2.DT_INT32
      else:
          return mace_pb2.DT_FLOAT
  
imports: import os
  import sys
  import os.path
  import numpy
  import six
  from py_proto import mace_pb2
  from utils import util
  from utils.config_parser import DataFormat
  from utils.config_parser import Platform
  from utils.util import mace_check
label_desc: Use image node_id 7 for calling a global function with example usage: get_data_type_by_value(value) and returns: mace_pb2, mace_pb2, mace_pb2