def METHOD_NAME(self):
    self.assertListEqual(self.pipeline_class.custom_pipeline_cache, [])
    def inner(x):
        return x
    @generated_jit(pipeline_class=self.pipeline_class)
    def foo(x):
        if isinstance(x, types.Integer):
            return inner
    self.assertEqual(foo(5), 5)
    self.assertListEqual(self.pipeline_class.custom_pipeline_cache,
                         [inner])