class_docstr: A language translator and detector.
  
  Usage:
  ::
      >>> from textblob.translate import Translator
      >>> t = Translator()
      >>> t.translate('hello', from_lang='en', to_lang='fr')
      u'bonjour'
      >>> t.detect("hola")
      u'es'
class_docstr_tok: ["A","language","translator","and","detector",".","Usage",":",":",":",">",">",">","from","textblob.translate","import","Translator",">",">",">","t","=","Translator","(",")",">",">",">","t.translate","(","'hello","'",",","from_lang='en","'",",","to_lang='fr","'",")","u'bonjour'",">",">",">","t.detect","(","``","hola","''",")","u'es","'"]
code: def _request(self, url, host=None, type_=None, data=None):
      encoded_data = urlencode(data).encode("utf-8")
      req = request.Request(
          url=url, headers=self.headers, data=encoded_data
      )
      if host or type_:
          req.set_proxy(host=host, type=type_)
      resp = request.urlopen(req)
      content = resp.read()
      return content.decode("utf-8")
  
file_path: TextBlob/textblob/translate.py
imports: from __future__ import absolute_import
  import codecs
  import json
  import re
  from textblob.compat import PY2, request, urlencode
  from textblob.exceptions import TranslatorError, NotTranslated
label_desc: Use image node_id 4 for calling the Translator obj's underlying member method code with example usage: obj._request(url, host, type_, data) and returns: content