class_docstr: State for the assertion plugin.
code: def __init__(self, config: Config, mode) -> None:
      self.mode = mode
      self.trace = config.trace.root.get("assertion")
      self.hook: Optional[rewrite.AssertionRewritingHook] = None
  
imports: import sys
  from typing import Any
  from typing import Generator
  from typing import List
  from typing import Optional
  from typing import TYPE_CHECKING
  from _pytest.assertion import rewrite
  from _pytest.assertion import truncate
  from _pytest.assertion import util
  from _pytest.assertion.rewrite import assertstate_key
  from _pytest.config import Config
  from _pytest.config import hookimpl
  from _pytest.config.argparsing import Parser
  from _pytest.nodes import Item
label_desc: Use image node_id 1 to create a new AssertionState object  with example: obj = AssertionState(config, mode)