code: def parse_internal_data_type(str):
      if str == "fp32_fp32":
          return mace_pb2.DT_FLOAT
      elif str == "bf16_fp32":
          return mace_pb2.DT_BFLOAT16
      elif str == "fp16_fp16":
          return mace_pb2.DT_FLOAT16
      else:
          return 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 8 for calling a global function with example usage: parse_internal_data_type(str) and returns: mace_pb2, mace_pb2, mace_pb2, mace_pb2