code: def test_inheritance(self):
      IntSubclass = type("IntSubclass", (int,), {})
      with patch.dict(self.dispatcher.funcs, {}):
          self.dispatcher.add(signature=(int,), func=lambda val: -val)
          self.assertEqual(self.dispatcher(IntSubclass(1)), -1)
  
file_path: botorch/test/utils/test_dispatcher.py
imports: from __future__ import annotations
  from contextlib import redirect_stdout
  from inspect import getsource, getsourcefile
  from io import StringIO
  from itertools import product
  from unittest.mock import patch
  from botorch.utils.dispatcher import Dispatcher, MDNotImplementedError
  from botorch.utils.testing import BotorchTestCase
label_desc: Use image node_id 6 for calling the TestDispatcher obj's underlying member method code with example usage: obj.test_inheritance() without return types