code: def test_01_06_run_pipeline(self):
      import cellprofiler_core.pipeline as cpp
      import cellprofiler_core.module as cpm
  
      def callback(caller, event):
          self.assertFalse(
              isinstance(
                  event,
                  (cpp.event.LoadException, cpp.event.RunException),
              )
          )
  
      pipeline = cpp.Pipeline()
      pipeline.add_listener(callback)
      fly_pipe = get_test_resources_directory("../ExampleFlyURL.cppipe")
      pipeline.load(fly_pipe)
      while True:
          removed_something = False
          for module in reversed(pipeline.modules()):
              self.assertTrue(isinstance(module, cpm.Module))
              if module.module_name in (
                  "SaveImages",
                  "CalculateStatistics",
                  "ExportToSpreadsheet",
                  "ExportToDatabase",
              ):
                  pipeline.remove_module(module.module_num)
                  removed_something = True
                  break
          if not removed_something:
              break
      for module in pipeline.modules():
          module.show_window = False
      m = pipeline.run(image_set_end=1)
  
file_path: CellProfiler/tests/frontend/test_nowx.py
imports: import builtins
  import sys
  import tempfile
  import unittest
  from urllib.request import urlopen
  from tests.frontend.modules import example_images_directory, get_test_resources_directory
label_desc: Use image node_id 7 for calling the TestNoWX obj's underlying member method code with example usage: obj.test_01_06_run_pipeline() without return types