docstr: Make sure chosen objects are selected only once
docstr_tok: ["Make","sure","chosen","objects","are","selected","only","once"]
code: def validate_module(self, pipeline):
      """Make sure chosen objects are selected only once"""
      if len(self.images_list.value) < 2:
          raise ValidationError(
              "This module needs at least 2 images to be selected",
              self.images_list,
          )
  
      if self.wants_objects():
          if len(self.objects_list.value) == 0:
              raise ValidationError(
                  "No object sets selected", self.objects_list
              )
  
imports: import numpy
  import scipy.ndimage
  import scipy.stats
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT
  from cellprofiler_core.module import Module
  from cellprofiler_core.setting import Divider, Binary, ValidationError
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.subscriber import LabelListSubscriber, ImageListSubscriber
  from cellprofiler_core.setting.text import Float
  from cellprofiler_core.utilities.core.object import size_similarly
  from centrosome.cpmorphology import fixup_scipy_ndimage_result
  from scipy.linalg import lstsq
label_desc: Use image node_id 18 for calling the MeasureColocalization obj's underlying member method code with example usage: obj.validate_module(pipeline) without return types