code: def u(string, errors="strict"):
      """Cast to unicode DAMMIT!
      Written because Python2 repr always implicitly casts to a string, so we
      have to cast back to a unicode (and we now that we always deal with valid
      unicode, because we check that in the beginning).
      """
      if isinstance(string, bytes):
          return unicode(string, encoding="UTF-8", errors=errors)
      return string
  
imports: import errno
  import sys
  import os
  import re
  import pkgutil
  import warnings
  import inspect
  import subprocess
  import ast
label_desc: Use image node_id 6 for calling a global function with example usage: u(string, errors) and returns: string, unicode