code: def test_override():
      """test override"""
  
      # valid override
      class B(A):
          """Sub Class"""
  
          @override(A)
          def method(self) -> None:
              """override possible"""
              pass
  
      # invalid override
      with raises(NameError):
  
          class C(A):
              """Sub Class"""
  
              @override(A)
              def another_method(self) -> None:
                  """override not possible"""
                  pass
  
imports: from pytest import raises
  from maze.core.annotations import override
label_desc: Use image node_id 1 for calling a global function with example usage: test_override() without return types