code: def dump2xzstream(obj, fname):
      dump2stream(obj, fname, compressed=True)
  
file_path: datalad/datalad/support/json_py.py
imports: import io
  import codecs
  from os.path import dirname, exists, lexists
  from os import makedirs
  import os
  import os.path
  import json
  from datalad.support.exceptions import CapturedException
  from ..log import lgr
label_desc: Use image node_id 5 for calling a global function with example usage: dump2xzstream(obj, fname) without return types