code: def utf8_repr(func):
      """
      ``__repr__`` methods in Python 2 don't allow unicode objects to be
      returned. Therefore cast them to utf-8 bytes in this decorator.
      """
  
      def wrapper(self):
          result = func(self)
          if isinstance(result, unicode):
              return result.encode("utf-8")
          else:
              return result
  
      if is_py3:
          return func
      else:
          return wrapper
  
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 12 for calling a global function with example usage: utf8_repr(func) and returns: func, wrapper, result, result