code: def json_serial(obj):
      """JSON serializer for objects not serializable by default json code"""
  
      if isinstance(obj, (datetime.datetime,)):
          return obj.isoformat()
      raise TypeError("Type %s not serializable" % type(obj))
  
imports: import os
  import zstandard
  import json
  import jsonlines
  import io
  import datetime
  import mmap
  import tqdm
  from pathlib import Path
label_desc: Use image node_id 1 for calling a global function with example usage: json_serial(obj) and returns: obj