class_docstr: a basic test invocation item. Note that for a single function
  there might be multiple test invocation items.
docstr: Adds a new report section, similar to what's done internally to add stdout and
  stderr captured output::
  
      item.add_report_section("call", "stdout", "report section contents")
  
  :param str when:
      One of the possible capture states, ``"setup"``, ``"call"``, ``"teardown"``.
  :param str key:
      Name of the section, can be customized at will. Pytest uses ``"stdout"`` and
      ``"stderr"`` internally.
  
  :param str content:
      The full contents as a string.
docstr_tok: ["Adds","a","new","report","section",",","similar","to","what","'s","done","internally","to","add","stdout","and","stderr","captured","output",":",":","item.add_report_section","(","``","call","''",",","``","stdout","''",",","``","report","section","contents","''",")",":","param","str","when",":","One","of","the","possible","capture","states",",","``","``","setup","''","``",",","``","``","call","''","``",",","``","``","teardown","''","``",".",":","param","str","key",":","Name","of","the","section",",","can","be","customized","at","will",".","Pytest","uses","``","``","stdout","''","``","and","``","``","stderr","''","``","internally",".",":","param","str","content",":","The","full","contents","as","a","string","."]
code: def add_report_section(self, when, key, content):
      """
      Adds a new report section, similar to what's done internally to add stdout and
      stderr captured output::
  
          item.add_report_section("call", "stdout", "report section contents")
  
      :param str when:
          One of the possible capture states, ``"setup"``, ``"call"``, ``"teardown"``.
      :param str key:
          Name of the section, can be customized at will. Pytest uses ``"stdout"`` and
          ``"stderr"`` internally.
  
      :param str content:
          The full contents as a string.
      """
      if content:
          self._report_sections.append((when, key, content))
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import warnings
  import py
  import six
  import _pytest._code
  from _pytest.compat import getfslineno
  from _pytest.mark.structures import NodeKeywords
  from _pytest.outcomes import fail
label_desc: Use image node_id 2 for calling the Item obj's underlying member method code with example usage: obj.add_report_section(when, key, content) without return types