code: def test_patch_on_inherit_method(store_hit):
      A, B = gen_class_A_B()
  
      original_A_f2 = A.f2
  
      def patched_B_f2(self):  # pylint: disable=unused-argument
          pass
  
      gorilla_setting = gorilla.Settings(
          allow_hit=True, store_hit=store_hit
      )
      patch_B_f2 = gorilla.Patch(B, "f2", patched_B_f2, gorilla_setting)
      gorilla.apply(patch_B_f2)
  
      assert B.f2 is patched_B_f2
  
      assert gorilla.get_original_attribute(B, "f2") is original_A_f2
  
      gorilla.revert(patch_B_f2)
      assert B.f2 is original_A_f2
      assert gorilla.get_original_attribute(B, "f2") is original_A_f2
      assert "f2" not in B.__dict__
  
file_path: mlflow/tests/utils/test_gorilla.py
imports: import pytest
  from mlflow.utils import gorilla
label_desc: Use image node_id 6 for calling a global function with example usage: test_patch_on_inherit_method(store_hit) without return types