code: def resize(self, pixel_data, labels):
      initial_shape = labels.shape
  
      final_shape = pixel_data.shape
  
      if pixel_data.ndim > labels.ndim:  # multichannel
          final_shape = final_shape[:-1]
  
      adjust = numpy.subtract(final_shape, initial_shape)
  
      cropped = skimage.util.crop(
          labels,
          [
              (0, dim_adjust)
              for dim_adjust in numpy.abs(
                  numpy.minimum(adjust, numpy.zeros_like(adjust))
              )
          ],
      )
  
      return numpy.pad(
          cropped,
          [
              (0, dim_adjust)
              for dim_adjust in numpy.maximum(
                  adjust, numpy.zeros_like(adjust)
              )
          ],
          mode="constant",
          constant_values=0,
      )
  
imports: import numpy
  import skimage.color
  import skimage.segmentation
  import skimage.util
  from cellprofiler_core.image import Image
  from cellprofiler_core.module import Module
  from cellprofiler_core.setting import Binary, Divider, SettingsGroup, Color
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.do_something import DoSomething, RemoveSettingButton
  from cellprofiler_core.setting.subscriber import ImageSubscriber, LabelSubscriber
  from cellprofiler_core.setting.text import ImageName
label_desc: Use image node_id 12 for calling the OverlayOutlines obj's underlying member method code with example usage: obj.resize(pixel_data, labels) and returns: numpy