code: def test_next_lower() -> None:
      assert Scope.Session.next_lower() is Scope.Package
      assert Scope.Package.next_lower() is Scope.Module
      assert Scope.Module.next_lower() is Scope.Class
      assert Scope.Class.next_lower() is Scope.Function
  
      with pytest.raises(
          ValueError, match="Function is the lower-most scope"
      ):
          Scope.Function.next_lower()
  
imports: import re
  import pytest
  from _pytest.scope import Scope
label_desc: Use image node_id 2 for calling a global function with example usage: test_next_lower() without return types