code: def test_abc_pairs_instance_check(self, abctype1, abctype2, inst, _):
      # GH 38588, 46719
      if abctype1 == abctype2:
          assert isinstance(inst, getattr(gt, abctype2))
          assert not isinstance(type(inst), getattr(gt, abctype2))
      else:
          assert not isinstance(inst, getattr(gt, abctype2))
  
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 1 for calling the TestABCClasses obj's underlying member method code with example usage: obj.test_abc_pairs_instance_check(abctype1, abctype2, inst, _) without return types