code: def load_data(file, data_type=mace_pb2.DT_FLOAT):
      if os.path.isfile(file):
          if (
              data_type == mace_pb2.DT_FLOAT
              or data_type == mace_pb2.DT_FLOAT16
              or data_type == mace_pb2.DT_BFLOAT16
          ):
              return np.fromfile(file=file, dtype=np.float32)
          elif data_type == mace_pb2.DT_INT32:
              return np.fromfile(file=file, dtype=np.int32)
      return np.empty([0])
  
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 1 for calling a global function with example usage: load_data(file, data_type) and returns: np, np, np