code: def apply_rectangle_cropping(self, workspace, orig_image):
      cropping = numpy.ones(orig_image.pixel_data.shape[:2], bool)
      d = self.get_dictionary(workspace.image_set_list)
      r = d[SH_RECTANGLE]
      left, top, right, bottom = [
          int(numpy.round(r[x]))
          for x in (RE_LEFT, RE_TOP, RE_RIGHT, RE_BOTTOM)
      ]
      if left > 0:
          cropping[:, :left] = False
      if right < cropping.shape[1]:
          cropping[:, right:] = False
      if top > 0:
          cropping[:top, :] = False
      if bottom < cropping.shape[0]:
          cropping[bottom:, :] = False
      return cropping
  
imports: import logging
  import math
  import centrosome.filter
  import matplotlib.axes
  import matplotlib.cm
  import matplotlib.figure
  import matplotlib.patches
  import numpy
  from cellprofiler_core.image import Image
  from cellprofiler_core.module import Module
  from cellprofiler_core.preferences import get_primary_outline_color
  from cellprofiler_core.setting import Coordinates
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.range import IntegerOrUnboundedRange
  from cellprofiler_core.setting.subscriber import CropImageSubscriber
  from cellprofiler_core.setting.subscriber import ImageSubscriber
  from cellprofiler_core.setting.subscriber import LabelSubscriber
  from cellprofiler_core.setting.text import CropImageName
  from cellprofiler_core.setting.text import Integer
  from cellprofiler_core.utilities.image import crop_image
label_desc: Use image node_id 12 for calling the Crop obj's underlying member method code with example usage: obj.apply_rectangle_cropping(workspace, orig_image) and returns: cropping