parameters: (inputs)
return_statement: return inputs
docstring: Converts all strings in the container to utf8 encoding recursively
docstring_summary: Converts all strings in the container to utf8 encoding recursively
docstring_tokens: Converts all strings in the container to utf8 encoding recursively
function: def encode_utf8(inputs):
      """
      Converts all strings in the container to utf8 encoding recursively
      """
      if isinstance(inputs, dict):
          return {encode_utf8(k): encode_utf8(v) for k, v in inputs.iteritems()}
      elif isinstance(inputs, list) or isinstance(inputs, tuple):
          return [encode_utf8(item) for item in inputs]
      elif isinstance(inputs, unicode):
          return inputs.encode('utf8')
      return inputs
function_tokens: def encode_utf8 ( inputs ) : if isinstance ( inputs , dict ) : return { encode_utf8 ( k ) : encode_utf8 ( v ) for k , v in inputs . iteritems ( ) } elif isinstance ( inputs , list ) or isinstance ( inputs , tuple ) : return [ encode_utf8 ( item ) for item in inputs ] elif isinstance ( inputs , unicode ) : return inputs . encode ( 'utf8' ) return inputs