code: def test_blank_to_gray():
      numpy.random.seed(0)
      image = numpy.random.uniform(size=(50, 50))
      outline = numpy.zeros((50, 50), bool)
      outline[20:31, 20:31] = 1
      outline[21:30, 21:30] = 0
      expected = numpy.zeros_like(image)
      expected[outline.astype(bool)] = 1
      workspace, module = make_workspace(
          image, labels=[outline.astype(int)]
      )
      module.blank_image.value = True
      module.wants_color.value = (
          cellprofiler.modules.overlayoutlines.WANTS_GRAYSCALE
      )
      module.line_mode.value = "Inner"
      module.run(workspace)
      output_image = workspace.image_set.get_image(OUTPUT_IMAGE_NAME)
      numpy.testing.assert_array_equal(
          output_image.pixel_data, expected
      )
  
imports: import io
  import numpy
  import numpy.testing
  import skimage.color
  import skimage.segmentation
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.module
  import cellprofiler.modules.overlayoutlines
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 9 for calling a global function with example usage: test_blank_to_gray() without return types