parameters: (s)
return_statement: return s
docstring: encode string in unicode
      :param s:
      :return:
docstring_summary: encode string in unicode
      :param s:
      :return:
docstring_tokens: encode string in unicode : param s : : return :
function: def encode_if_unicode(s):
      """
      encode string in unicode
      :param s:
      :return:
      """
      if isinstance(s, unicode):
          return s.encode('utf-8')
      return s
function_tokens: def encode_if_unicode ( s ) : if isinstance ( s , unicode ) : return s . encode ( 'utf-8' ) return s