code: def test_instance_of_exact(self):
      class Foo(object):
          pass
  
      class Bar(Foo):
          pass
  
      self.assertEqual(Bar(), instance_of(Foo))
      self.assertNotEqual(Bar(), instance_of(Foo, exact=True))
  
imports: from itertools import product
  from unittest import TestCase
  from numpy import array, empty
  from zipline._protocol import BarData
  from zipline.finance.asset_restrictions import NoRestrictions
  from zipline.finance.order import Order
  from zipline.testing import check_arrays, make_alternating_boolean_array, make_cascading_boolean_array, parameter_space
  from zipline.testing.fixtures import WithConstantEquityMinuteBarData, WithDataPortal, ZiplineTestCase
  from zipline.testing.slippage import TestingSlippage
  from zipline.testing.predicates import wildcard, instance_of
  from zipline.utils.numpy_utils import bool_dtype
label_desc: Use image node_id 3 for calling the TestPredicates obj's underlying member method code with example usage: obj.test_instance_of_exact() without return types