code: def test_factory(self):
      self.assertEqual(type(factory(0)), A)
      self.assertEqual(type(factory(1)), A)
      self.assertEqual(type(factory(2)), C)
  
file_path: turicreate/src/external/boost/boost_1_68_0/libs/python/test/polymorphism2.py
imports: import unittest
  import sys
label_desc: Use image node_id 3 for calling the PolymorphTest obj's underlying member method code with example usage: obj.test_factory() without return types