parameters: (s)
return_statement: return s
docstring: Return the parameter as type which supports unicode, possibly decoding
      it.
  
      In Python2, this is the unicode type. In Python3 it's the str type.
docstring_summary: Return the parameter as type which supports unicode, possibly decoding
      it.
docstring_tokens: Return the parameter as type which supports unicode possibly decoding it .
function: def to_unicode(s):
      """Return the parameter as type which supports unicode, possibly decoding
      it.
  
      In Python2, this is the unicode type. In Python3 it's the str type.
  
      """
      if isinstance(s, bytes):
          # In Python2, this branch is taken for both 'str' and 'bytes'.
          # In Python3, this branch is taken only for 'bytes'.
          return s.decode('utf-8')
      return s
function_tokens: def to_unicode ( s ) : if isinstance ( s , bytes ) : # In Python2, this branch is taken for both 'str' and 'bytes'. # In Python3, this branch is taken only for 'bytes'. return s . decode ( 'utf-8' ) return s