code: def smooth_with_splines(self, pixel_data, mask):
      if self.automatic_splines:
          # Make the image 200 pixels long on its shortest side
          shortest_side = min(pixel_data.shape)
          if shortest_side < 200:
              scale = 1
          else:
              scale = float(shortest_side) / 200
          result = centrosome.bg_compensate.backgr(
              pixel_data, mask, scale=scale
          )
      else:
          mode = self.spline_bg_mode.value
          spline_points = self.spline_points.value
          threshold = self.spline_threshold.value
          convergence = self.spline_convergence.value
          iterations = self.spline_maximum_iterations.value
          rescale = self.spline_rescale.value
          result = centrosome.bg_compensate.backgr(
              pixel_data,
              mask,
              mode=mode,
              thresh=threshold,
              splinepoints=spline_points,
              scale=rescale,
              maxiter=iterations,
              convergence=convergence,
          )
      #
      # The result is a fit to the background intensity, but we
      # want to normalize the intensity by subtraction, leaving
      # the mean intensity alone.
      #
      mean_intensity = numpy.mean(result[mask])
      result[mask] -= mean_intensity
      return result
  
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 16 for calling the CorrectIlluminationCalculate obj's underlying member method code with example usage: obj.smooth_with_splines(pixel_data, mask) and returns: result