code: def test_log_automatic():
      """Test the laplacian of gaussian with automatic sigma"""
      numpy.random.seed(0)
      image = numpy.random.uniform(size=(20, 20)).astype(numpy.float32)
      workspace, module = make_workspace(image)
      module.method.value = cellprofiler.modules.enhanceedges.M_LOG
      module.sigma.value = 20
      module.wants_automatic_sigma.value = True
      module.run(workspace)
      output = workspace.image_set.get_image(OUTPUT_IMAGE_NAME)
      sigma = 2.0
      expected = centrosome.filter.laplacian_of_gaussian(
          image,
          numpy.ones(image.shape, bool),
          int(sigma * 4) + 1,
          sigma,
      ).astype(numpy.float32)
  
      assert numpy.all(output.pixel_data == expected)
  
imports: import centrosome.filter
  import centrosome.kirsch
  import centrosome.otsu
  import numpy
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler.modules.enhanceedges
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.workspace
label_desc: Use image node_id 9 for calling a global function with example usage: test_log_automatic() without return types