code: def build_sample(ids, types, paddings, label, unique_id):
      """Convert to numpy and return a sample consumed by the batch producer."""
  
      ids_np = np.array(ids, dtype=np.int64)
      types_np = np.array(types, dtype=np.int64)
      paddings_np = np.array(paddings, dtype=np.int64)
      sample = {
          "text": ids_np,
          "types": types_np,
          "padding_mask": paddings_np,
          "label": int(label),
          "uid": int(unique_id),
      }
  
      return sample
  
imports: import re
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: build_sample(ids, types, paddings, label, unique_id) and returns: sample