code: def transform_to_dict(data):
      if data[1] is None:
          return {"x": data[0].astype(np.float32), "id": data[2]}
      return {
          "x": data[0].astype(np.float32),
          "y": data[1].astype(np.float32),
          "id": data[2],
      }
  
label_desc: Use image node_id 2 for calling a global function with example usage: transform_to_dict(data) and returns: dict, dict