code: def test_scoped_enum():
      from pybind11_tests import ScopedEnum, test_scoped_enum
  
      assert test_scoped_enum(ScopedEnum.Three) == "ScopedEnum::Three"
      z = ScopedEnum.Two
      assert test_scoped_enum(z) == "ScopedEnum::Two"
  
      # expected TypeError exceptions for scoped enum ==/!= int comparisons
      with pytest.raises(TypeError):
          assert z == 2
      with pytest.raises(TypeError):
          assert z != 3
  
      # order
      assert ScopedEnum.Two < ScopedEnum.Three
      assert ScopedEnum.Three > ScopedEnum.Two
      assert ScopedEnum.Two <= ScopedEnum.Three
      assert ScopedEnum.Two <= ScopedEnum.Two
      assert ScopedEnum.Two >= ScopedEnum.Two
      assert ScopedEnum.Three >= ScopedEnum.Two
  
imports: import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_scoped_enum() without return types