code: def LZMAFile(*args, **kwargs):
      """A little decorator to overcome a bug in lzma
  
      A unique to yoh and some others bug with pyliblzma
      calling dir() helps to avoid AttributeError __exit__
      see https://bugs.launchpad.net/pyliblzma/+bug/1219296
      """
      import lzma
  
      lzmafile = lzma.LZMAFile(*args, **kwargs)
      dir(lzmafile)
      return lzmafile
  
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 3 for calling a global function with example usage: LZMAFile() and returns: lzmafile