code: def test_simple_namespace():
      ns = m.get_simple_namespace()
      assert ns.attr == 42
      assert ns.x == "foo"
      assert ns.right == 2
      assert not hasattr(ns, "wrong")
  
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 16 for calling a global function with example usage: test_simple_namespace() without return types