code: def test_hierarchy_insp(self):
      class SomeFoo(TestFixture):
          pass
  
      class SomeSubFoo(SomeFoo):
          pass
  
      @inspection._inspects(SomeFoo)
      def insp_somefoo(subject):
          return 1
  
      @inspection._inspects(SomeSubFoo)
      def insp_somesubfoo(subject):
          return 2
  
      SomeFoo()
      eq_(inspect(SomeFoo()), 1)
      eq_(inspect(SomeSubFoo()), 2)
  
file_path: sqlalchemy/test/base/test_inspect.py
imports: from sqlalchemy import exc
  from sqlalchemy import inspect
  from sqlalchemy import inspection
  from sqlalchemy.testing import assert_raises_message
  from sqlalchemy.testing import eq_
  from sqlalchemy.testing import fixtures
label_desc: Use image node_id 5 for calling the TestInspection obj's underlying member method code with example usage: obj.test_hierarchy_insp() and returns: int, int