docstr: Produce error if 'All:First' is selected and input image is not provided by the file image provider.
docstr_tok: ["Produce","error","if","'All",":","First","'","is","selected","and","input","image","is","not","provided","by","the","file","image","provider","."]
code: def validate_module(self, pipeline):
      """Produce error if 'All:First' is selected and input image is not provided by the file image provider."""
      if (
          not pipeline.is_image_from_file(self.image_name.value)
          and self.each_or_all == EA_ALL_FIRST
      ):
          raise ValidationError(
              "All: First cycle requires that the input image be provided by the Input modules, or LoadImages/LoadData.",
              self.each_or_all,
          )
  
      """Modify the image provider attributes based on other setttings"""
      d = self.illumination_image_name.provided_attributes
      if self.each_or_all == EA_ALL_ACROSS:
          d["available_on_last"] = True
      elif "available_on_last" in d:
          del d["available_on_last"]
  
imports: import centrosome.bg_compensate
  import centrosome.cpmorphology
  import centrosome.cpmorphology
  import centrosome.filter
  import centrosome.smooth
  import numpy
  import scipy.ndimage
  import skimage.filters
  from cellprofiler_core.image import AbstractImage
  from cellprofiler_core.image import Image
  from cellprofiler_core.measurement import Measurements
  from cellprofiler_core.module import Module
  from cellprofiler_core.pipeline import Pipeline
  from cellprofiler_core.setting import Binary
  from cellprofiler_core.setting import ValidationError
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.subscriber import ImageSubscriber
  from cellprofiler_core.setting.text import Float
  from cellprofiler_core.setting.text import ImageName
  from cellprofiler_core.setting.text import Integer
label_desc: Use image node_id 18 for calling the CorrectIlluminationCalculate obj's underlying member method code with example usage: obj.validate_module(pipeline) without return types