docs: def _autobox(content, format):
      '''
      Autobox response content.
  
      :param content: Response content
      :type content: str
      :param format: Format to return
      :type format: `yaxil.Format`
      :returns: Autoboxed content
      :rtype: dict|xml.etree.ElementTree.Element|csvreader
      '''
      if format == Format.JSON:
          return json.loads(content)
      elif format == Format.XML:
          return etree.fromstring(content)
      elif format == Format.CSV:
          try:
              return csv.reader(io.BytesIO(content))
          except TypeError:
              # as per https://docs.python.org/2/library/csv.html#examples
              def unicode_csv_reader(unicode_csv_data, dialect=csv.excel, **kwargs):
                  # csv.py doesn't do Unicode; encode temporarily as UTF-8:
                  csv_reader = csv.reader(utf_8_encoder(unicode_csv_data),
                                          dialect=dialect, **kwargs)
                  for row in csv_reader:
                      # decode UTF-8 back to Unicode, cell by cell:
                      yield [unicode(cell, 'utf-8') for cell in row]
              def utf_8_encoder(unicode_csv_data):
                  for line in unicode_csv_data:
                      yield line.encode('utf-8')
              return unicode_csv_reader(io.StringIO(content))
      else:
          raise AutoboxError("unknown autobox format %s" % format)