code: def get_background_image(self, workspace, gridding):
      if (
          self.auto_or_manual == AM_MANUAL
          and self.manual_choice == MAN_MOUSE
          and gridding is None
      ):
          image = workspace.image_set.get_image(
              self.manual_image.value
          ).pixel_data
      elif self.display_image_name.value == "Leave blank":
          if gridding is None:
              return None
          image = numpy.zeros(
              (
                  int(
                      gridding.total_height
                      + (
                          gridding.y_location_of_lowest_y_spot
                          - gridding.y_spacing / 2
                      )
                      * 2
                  )
                  + 2,
                  int(
                      gridding.total_width
                      + (
                          gridding.x_location_of_lowest_x_spot
                          - gridding.x_spacing / 2
                      )
                      * 2
                  )
                  + 2,
                  3,
              )
          )
      else:
          image = workspace.image_set.get_image(
              self.display_image_name.value
          ).pixel_data
          if image.ndim == 2:
              image = numpy.dstack((image, image, image))
      return image
  
imports: import logging
  import centrosome.cpmorphology
  import numpy
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT
  from cellprofiler_core.constants.measurement import COLTYPE_INTEGER
  from cellprofiler_core.constants.measurement import IMAGE
  from cellprofiler_core.image import Image
  from cellprofiler_core.module import Module
  from cellprofiler_core.setting import Binary
  from cellprofiler_core.setting import Coordinates
  from cellprofiler_core.setting import ValidationError
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.subscriber import ImageSubscriber
  from cellprofiler_core.setting.subscriber import LabelSubscriber
  from cellprofiler_core.setting.text import GridName
  from cellprofiler_core.setting.text import ImageName
  from cellprofiler_core.setting.text import Integer
  from cellprofiler_core.utilities.grid import Grid
label_desc: Use image node_id 5 for calling the DefineGrid obj's underlying member method code with example usage: obj.get_background_image(workspace, gridding) and returns: image, None