code: def read_file_unicode(path, binary=True, enc="utf-8"):
      if not binary:
          if six.PY2:
              with open(path, "r") as f:
                  return library.python.strings.to_unicode(
                      f.read(), enc
                  )
          else:
              with open(path, "r", encoding=enc) as f:
                  return f.read()
      # codecs.open is always binary
      with codecs.open(
          path,
          "r",
          encoding=enc,
          errors=library.python.strings.ENCODING_ERRORS_POLICY,
      ) as f:
          return f.read()
  
imports: import codecs
  import errno
  import logging
  import os
  import random
  import shutil
  import six
  import stat
  import sys
  import library.python.func
  import library.python.strings
  import library.python.windows
label_desc: Use image node_id 21 for calling a global function with example usage: read_file_unicode(path, binary, enc) and returns: f, library, f