code: def test_undo_class_descriptors_delattr() -> None:
      class SampleParent:
          @classmethod
          def hello(_cls):
              pass
  
          @staticmethod
          def world():
              pass
  
      class SampleChild(SampleParent):
          pass
  
      monkeypatch = MonkeyPatch()
  
      original_hello = SampleChild.hello
      original_world = SampleChild.world
      monkeypatch.delattr(SampleParent, "hello")
      monkeypatch.delattr(SampleParent, "world")
      assert getattr(SampleParent, "hello", None) is None
      assert getattr(SampleParent, "world", None) is None
  
      monkeypatch.undo()
      assert original_hello == SampleChild.hello
      assert original_world == SampleChild.world
  
imports: import os
  import re
  import sys
  import textwrap
  from pathlib import Path
  from typing import Dict
  from typing import Generator
  from typing import Type
  import pytest
  from _pytest.monkeypatch import MonkeyPatch
  from _pytest.pytester import Pytester
label_desc: Use image node_id 21 for calling a global function with example usage: test_undo_class_descriptors_delattr() without return types