code: def test_abc_hierarchy(self, parent, subs, abctype, inst):
      # GH 38588
      if abctype in subs:
          assert isinstance(inst, getattr(gt, parent))
      else:
          assert not isinstance(inst, getattr(gt, parent))
  
file_path: pandas/pandas/tests/dtypes/test_generic.py
imports: import re
  import numpy
  import pytest
  from pandas.core.dtypes import generic
  import pandas
  import pandas._testing
label_desc: Use image node_id 3 for calling the TestABCClasses obj's underlying member method code with example usage: obj.test_abc_hierarchy(parent, subs, abctype, inst) without return types