docstr: Restore the image set list from its setting as we go into batch mode
docstr_tok: ["Restore","the","image","set","list","from","its","setting","as","we","go","into","batch","mode"]
code: def enter_batch_mode(self, workspace):
      """Restore the image set list from its setting as we go into batch mode"""
      pipeline = workspace.pipeline
      assert isinstance(pipeline, Pipeline)
      assert (
          not self.distributed_mode
      ), "Distributed mode no longer supported"
      default_output_directory = self.custom_output_directory.value
      default_image_directory = self.default_image_directory.value
      if os.path.isdir(default_output_directory):
          set_default_output_directory(default_output_directory)
      else:
          LOGGER.info(
              'Batch file default output directory, "%s", does not exist'
              % default_output_directory
          )
      if os.path.isdir(default_image_directory):
          set_default_image_directory(default_image_directory)
      else:
          LOGGER.info(
              'Batch file default input directory "%s", does not exist'
              % default_image_directory
          )
  
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 16 for calling the CreateBatchFiles obj's underlying member method code with example usage: obj.enter_batch_mode(workspace) without return types