code: def parse_data_type(str):
      if str == "float32":
          return mace_pb2.DT_FLOAT
      if str == "float16":
          return mace_pb2.DT_FLOAT16
      elif str == "int32":
          return mace_pb2.DT_INT32
      elif str == "int16":
          return mace_pb2.DT_INT16
      elif str == "uint8":
          return mace_pb2.DT_UINT8
      else:
          mace_check(False, "data type %s not supported" % str)
  
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 7 for calling a global function with example usage: parse_data_type(str) and returns: mace_pb2, mace_pb2, mace_pb2, mace_pb2, mace_pb2