docstr: Make sure the module settings are valid
docstr_tok: ["Make","sure","the","module","settings","are","valid"]
code: def validate_module(self, pipeline):
      """Make sure the module settings are valid"""
      # Ensure we're not an un-updatable version of the module from way back.
      if self.from_old_matlab.value:
          raise ValidationError(
              "The pipeline you loaded was from an old version of CellProfiler 1.0, "
              "which could not be made compatible with this version of CellProfiler.",
              self.acknowledge_old_matlab,
          )
      # This must be the last module in the pipeline
      if id(self) != id(pipeline.modules()[-1]):
          raise ValidationError(
              "The CreateBatchFiles module must be "
              "the last in the pipeline.",
              self.wants_default_output_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 11 for calling the CreateBatchFiles obj's underlying member method code with example usage: obj.validate_module(pipeline) without return types