code: def custom_result(self, **options):
          
          rslt = Result(self.all_docs, **options)
          yield rslt
          del rslt
docs: Provides a context manager that can be used to customize the
          ``_all_docs`` behavior and wrap the output as a
          :class:`~cloudant.result.Result`.
  
          :param bool descending: Return documents in descending key order.
          :param endkey: Stop returning records at this specified key.
              Not valid when used with :class:`~cloudant.result.Result` key
              access and key slicing.
          :param str endkey_docid: Stop returning records when the specified
              document id is reached.
          :param bool include_docs: Include the full content of the documents.
          :param bool inclusive_end: Include rows with the specified endkey.
          :param key: Return only documents that match the specified key.
              Not valid when used with :class:`~cloudant.result.Result` key
              access and key slicing.
          :param list keys: Return only documents that match the specified keys.
              Not valid when used with :class:`~cloudant.result.Result` key
              access and key slicing.
          :param int page_size: Sets the page size for result iteration.
          :param startkey: Return records starting with the specified key.
              Not valid when used with :class:`~cloudant.result.Result` key
              access and key slicing.
          :param str startkey_docid: Return records starting with the specified
              document ID.
  
          For example:
  
          .. code-block:: python
  
              with database.custom_result(include_docs=True) as rslt:
                  data = rslt[100: 200]