docstr: Create the module settings and name the module
docstr_tok: ["Create","the","module","settings","and","name","the","module"]
code: def create_settings(self):
      """Create the module settings and name the module"""
      self.wants_default_output_directory = Binary(
          "Store batch files in default output folder?",
          True,
          doc="""\
  Select "*Yes*" to store batch files in the Default Output folder.
  Select "*No*" to enter the path to the folder that will be used to
  store these files. The Default Output folder can be set by clicking the "View output settings" button in the main CP window, or in CellProfiler Preferences. """
          % globals(),
      )
  
      self.custom_output_directory = Text(
          "Output folder path",
          get_default_output_directory(),
          doc="Enter the path to the output folder. (Used only if not using the default output folder)",
      )
  
      # Worded this way not because I am windows-centric but because it's
      # easier than listing every other OS in the universe except for VMS
      self.remote_host_is_windows = Binary(
          "Are the cluster computers running Windows?",
          False,
          doc="""\
  Select "*Yes*" if the cluster computers are running one of the
  Microsoft Windows operating systems. In this case, **CreateBatchFiles**
  will modify all paths to use the Windows file separator (backslash \\\\ ).
  Select "*No*" for **CreateBatchFiles** to modify all paths to use the
  Unix or Macintosh file separator (slash / )."""
          % globals(),
      )
  
      self.batch_mode = Binary("Hidden- in batch mode", False)
      self.distributed_mode = Binary(
          "Hidden- in distributed mode", False
      )
      self.default_image_directory = Setting(
          "Hidden- default input folder at time of save",
          get_default_image_directory(),
      )
      self.revision = Integer("Hidden- revision number", 0)
      self.from_old_matlab = Binary("Hidden- from old matlab", False)
      self.acknowledge_old_matlab = DoSomething(
          "Could not update CP1.0 pipeline to be compatible with CP2.0.  See module notes.",
          "OK",
          self.clear_old_matlab,
      )
      self.mappings = []
      self.add_mapping()
      self.add_mapping_button = DoSomething(
          "",
          "Add another path mapping",
          self.add_mapping,
          doc="""\
  Use this option if another path must be mapped because there is a difference
  between how the local computer sees a folder location vs. how the cluster
  computer sees the folder location.""",
      )
  
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 2 for calling the CreateBatchFiles obj's underlying member method code with example usage: obj.create_settings() without return types