class_docstr: The ``BodyPart`` object is a ``Response``-like interface to an individual
  subpart of a multipart response. It is expected that these will
  generally be created by objects of the ``MultipartDecoder`` class.
  
  Like ``Response``, there is a ``CaseInsensitiveDict`` object named headers,
  ``content`` to access bytes, ``text`` to access unicode, and ``encoding``
  to access the unicode codec.
class_docstr_tok: ["The","``","BodyPart","``","object","is","a","``","Response","``","-like","interface","to","an","individual","subpart","of","a","multipart","response",".","It","is","expected","that","these","will","generally","be","created","by","objects","of","the","``","MultipartDecoder","``","class",".","Like","``","Response","``",",","there","is","a","``","CaseInsensitiveDict","``","object","named","headers",",","``","content","``","to","access","bytes",",","``","text","``","to","access","unicode",",","and","``","encoding","``","to","access","the","unicode","codec","."]
docstr: Content of the ``BodyPart`` in unicode.
docstr_tok: ["Content","of","the","``","BodyPart","``","in","unicode","."]
code: def text(self):
      """Content of the ``BodyPart`` in unicode."""
      return self.content.decode(self.encoding)
  
imports: import sys
  import email.parser
  from .encoder import encode_with
  from requests.structures import CaseInsensitiveDict
label_desc: Use image node_id 2 for calling the BodyPart obj's underlying member method code with example usage: obj.text() and returns: self