code: def Float2BFloat16Bytes(float_data):
      int_datas = []
      for value in float_data:
          bytes = struct.pack("f", value)
          int_data = struct.unpack("i", bytes)[0]
          int_datas.append(int_data >> 16)
      return np.array(int_datas).astype(np.uint16).tobytes()
  
imports: import array
  import numpy
  import struct
  from py_proto import mace_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: Float2BFloat16Bytes(float_data) and returns: np