parameters: (string)
return_statement: return string
docstring: Ensure a passed string is unicode
docstring_summary: Ensure a passed string is unicode
docstring_tokens: Ensure a passed string is unicode
function: def to_unicode(string):
      """
      Ensure a passed string is unicode
      """
      if isinstance(string, six.binary_type):
          return string.decode('utf8')
      return string
function_tokens: def to_unicode ( string ) : if isinstance ( string , six . binary_type ) : return string . decode ( 'utf8' ) return string