code: def smart_unicode(string, encoding='utf-8', strings_only=False, errors='strict'):
      
      # if isinstance(s, Promise):
      #     # The input is the result of a gettext_lazy() call.
      #     return s
      return force_unicode(string, encoding, strings_only, errors)
docs: Returns a unicode object representing 's'. Treats bytestrings using the
      'encoding' codec.
  
      If strings_only is True, don't convert (some) non-string-like objects.