code: def test_trace_segments():
      #
      # Regression test of img-1541, branch_areas_binary is not zero
      # but segments_binary is
      #
      module = cellprofiler.modules.untangleworms.UntangleWorms()
      (
          i,
          j,
          labels,
          segment_order,
          distances,
          num_segments,
      ) = module.trace_segments(numpy.zeros((10, 13), bool))
      assert len(i) == 0
      assert len(j) == 0
      numpy.testing.assert_equal(labels, 0)
      assert len(segment_order) == 0
      assert len(distances) == 0
      assert num_segments == 0
  
imports: import base64
  import io
  import os
  import tempfile
  import zlib
  import imageio
  import centrosome.outline
  import numpy
  import scipy.ndimage
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.modules
  import cellprofiler.modules.untangleworms
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.setting
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 40 for calling a global function with example usage: test_trace_segments() without return types