def METHOD_NAME(self):
    super(TestCustomPipeline, self).METHOD_NAME()
    # Define custom pipeline class
    class CustomPipeline(Compiler):
        custom_pipeline_cache = []
        def compile_extra(self, func):
            # Store the compiled function
            self.custom_pipeline_cache.append(func)
            return super(CustomPipeline, self).compile_extra(func)
        def compile_ir(self, func_ir, *args, **kwargs):
            # Store the compiled function
            self.custom_pipeline_cache.append(func_ir)
            return super(CustomPipeline, self).compile_ir(
                func_ir, *args, **kwargs)
    self.pipeline_class = CustomPipeline