code: def test_dict(capture, doc):
      d = m.get_dict()
      assert d == {"key": "value"}
  
      with capture:
          d["key2"] = "value2"
          m.print_dict(d)
      assert (
          capture.unordered
          == """
          key: key, value=value
          key: key2, value=value2
      """
      )
  
      assert not m.dict_contains({}, 42)
      assert m.dict_contains({42: None}, 42)
      assert m.dict_contains({"foo": None}, "foo")
  
      assert doc(m.get_dict) == "get_dict() -> dict"
      assert doc(m.print_dict) == "print_dict(arg0: dict) -> None"
  
      assert m.dict_keyword_constructor() == {"x": 1, "y": 2, "z": 3}
  
imports: import contextlib
  import sys
  import types
  import pytest
  import env
  from pybind11_tests import detailed_error_messages_enabled
  from pybind11_tests import pytypes
label_desc: Use image node_id 13 for calling a global function with example usage: test_dict(capture, doc) without return types