code: def to_json(data):
      return json.dumps(data, cls=TritonSerializer)
  
imports: import json
  import numpy
  from towhee.runtime.data_queue import Empty
label_desc: Use image node_id 1 for calling a global function with example usage: to_json(data) and returns: json