code: def open_source_from_loader(
      loader, source_filename, encoding=None, error_handling=None
  ):
      nrmpath = os.path.normpath(source_filename)
      arcname = nrmpath[len(loader.archive) + 1 :]
      data = loader.get_data(arcname)
      return io.TextIOWrapper(
          io.BytesIO(data), encoding=encoding, errors=error_handling
      )
  
imports: from __future__ import absolute_import
  import os
  import sys
  import re
  import io
  import codecs
  import shutil
  import tempfile
  from contextlib import contextmanager
label_desc: Use image node_id 18 for calling a global function with example usage: open_source_from_loader(loader, source_filename, encoding, error_handling) and returns: io