docstr: Invoke the image_set_list pickling mechanism and save the pipeline
docstr_tok: ["Invoke","the","image_set_list","pickling","mechanism","and","save","the","pipeline"]
code: def prepare_run(self, workspace):
      """Invoke the image_set_list pickling mechanism and save the pipeline"""
  
      pipeline = workspace.pipeline
      image_set_list = workspace.image_set_list
  
      if pipeline.test_mode or self.from_old_matlab:
          return True
      if self.batch_mode.value:
          self.enter_batch_mode(workspace)
          return True
      else:
          path = self.save_pipeline(workspace)
          if not get_headless():
              import wx
  
              wx.MessageBox(
                  "CreateBatchFiles saved pipeline to %s" % path,
                  caption="CreateBatchFiles: Batch file saved",
                  style=wx.OK | wx.ICON_INFORMATION,
              )
          return False
  
imports: import logging
  import os
  import re
  import sys
  import zlib
  import numpy
  from cellprofiler_core.constants.measurement import F_BATCH_DATA_H5
  from cellprofiler_core.measurement import Measurements
  from cellprofiler_core.module import Module
  from cellprofiler_core.pipeline import Pipeline
  from cellprofiler_core.preferences import get_absolute_path
  from cellprofiler_core.preferences import get_default_image_directory
  from cellprofiler_core.preferences import get_default_output_directory
  from cellprofiler_core.preferences import get_headless
  from cellprofiler_core.preferences import set_default_image_directory
  from cellprofiler_core.preferences import set_default_output_directory
  from cellprofiler_core.setting import Binary
  from cellprofiler_core.setting import Divider
  from cellprofiler_core.setting import Setting
  from cellprofiler_core.setting import SettingsGroup
  from cellprofiler_core.setting import ValidationError
  from cellprofiler_core.setting.do_something import DoSomething
  from cellprofiler_core.setting.do_something import RemoveSettingButton
  from cellprofiler_core.setting.text import Text, Integer
  from cellprofiler_core.workspace import Workspace
  import cellprofiler
label_desc: Use image node_id 8 for calling the CreateBatchFiles obj's underlying member method code with example usage: obj.prepare_run(workspace) and returns: True, True, False