code: def write_correct_data(valueType, value):
      if valueType == "string":
          s = write_string(value)
      elif valueType == "float":
          s = struct.pack("f", value)
      elif valueType == "int32_t":
          s = struct.pack("i", value)
      elif valueType == "uint32_t":
          s = struct.pack("I", value)
      elif valueType == "int64_t":
          s = struct.pack("l", value)
      elif valueType == "uint64_t":
          s = struct.pack("L", value)
      elif valueType == "featureType":
          if value == "sparse":
              s = struct.pack("i", 0)
          elif value == "dense":
              s = struct.pack("i", 1)
          elif value == "binary":
              s = struct.pack("i", 2)
          else:
              s = struct.pack("i", 3)
      else:
          print("not support this valueType " + valueType)
          exit(1)
      return s
  
file_path: euler/euler/tools/util.py
imports: import struct
  import ctypes
  import os
  import threading
label_desc: Use image node_id 7 for calling a global function with example usage: write_correct_data(valueType, value) and returns: s