class_docstr: A context manager to record raised warnings.
  
  Adapted from `warnings.catch_warnings`.
class_docstr_tok: ["A","context","manager","to","record","raised","warnings",".","Adapted","from","`","warnings.catch_warnings","`","."]
docstr: The number of recorded warnings.
docstr_tok: ["The","number","of","recorded","warnings","."]
code: def __len__(self):
      """The number of recorded warnings."""
      return len(self._list)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import inspect
  import re
  import sys
  import warnings
  import six
  import _pytest._code
  from _pytest.deprecated import PYTEST_WARNS_UNKNOWN_KWARGS
  from _pytest.deprecated import WARNS_EXEC
  from _pytest.fixtures import yield_fixture
  from _pytest.outcomes import fail
label_desc: Use image node_id 5 for calling the WarningsRecorder obj's underlying member method code with example usage: obj.__len__() and returns: len