def parse_response(response, encoding='utf-8'):
    """Parse a multipart Requests.Response into a tuple of BodyPart objects.

    Args:
      response: Requests.Response

      encoding:
        The parser will assume that any text in the HTML body is encoded with this
        encoding when decoding it for use in the ``text`` attribute.

    Returns:
      tuple of BodyPart
        Members: headers (CaseInsensitiveDict), content (bytes), text (Unicode),
        encoding (str).

    """
    return requests_toolbelt.multipart.decoder.MultipartDecoder.from_response(
        response, encoding
    ).parts