code: def get_streerror(e, default=None):
      if hasattr(e, "strerror"):
          msg = e.strerror
      else:
          if default is not None:
              msg = default
          else:
              msg = str(e)
      if isinstance(msg, bytes):
          msg = msg.decode("utf-8", "replace")
      return msg
  
imports: import codecs
  import io
  import os
  import re
  import sys
  from weakref import WeakKeyDictionary
label_desc: Use image node_id 5 for calling a global function with example usage: get_streerror(e, default) and returns: msg