code: def test_set(capture, doc):
      s = m.get_set()
      assert isinstance(s, set)
      assert s == {"key1", "key2", "key3"}
  
      s.add("key4")
      with capture:
          m.print_anyset(s)
      assert (
          capture.unordered
          == """
          key: key1
          key: key2
          key: key3
          key: key4
      """
      )
  
      m.set_add(s, "key5")
      assert m.anyset_size(s) == 5
  
      m.set_clear(s)
      assert m.anyset_empty(s)
  
      assert not m.anyset_contains(set(), 42)
      assert m.anyset_contains({42}, 42)
      assert m.anyset_contains({"foo"}, "foo")
  
      assert doc(m.get_set) == "get_set() -> set"
      assert doc(m.print_anyset) == "print_anyset(arg0: anyset) -> None"
  
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 11 for calling a global function with example usage: test_set(capture, doc) without return types