code: def pytest_runtest_teardown(
      item: "Item", nextitem: Optional["Item"]
  ) -> None:
      """Called to perform the teardown phase for a test item.
  
      The default implementation runs the finalizers and calls ``teardown()``
      on ``item`` and all of its parents (which need to be torn down). This
      includes running the teardown phase of fixtures required by the item (if
      they go out of scope).
  
      :param item:
          The item.
      :param nextitem:
          The scheduled-to-be-next test item (None if no further test item is
          scheduled). This argument is used to perform exact teardowns, i.e.
          calling just enough finalizers so that nextitem only needs to call
          setup functions.
      """
  
imports: from pathlib import Path
  from typing import Any
  from typing import Dict
  from typing import List
  from typing import Mapping
  from typing import Optional
  from typing import Sequence
  from typing import Tuple
  from typing import TYPE_CHECKING
  from typing import Union
  from pluggy import HookspecMarker
label_desc: Use image node_id 30 for calling a global function with example usage: pytest_runtest_teardown(item, nextitem) without return types