code: def test_fast_selection_no_gap():
      module = cellprofiler.modules.untangleworms.UntangleWorms()
      costs = numpy.array([1, 1, 7])
      path_segment_matrix = numpy.array(
          [
              [True, False, True],
              [False, False, True],
              [False, True, True],
          ]
      )
      segment_lengths = numpy.array([5, 3, 5])
      best_paths, best_cost = module.fast_selection(
          costs, path_segment_matrix, segment_lengths, 5, 2, 10000
      )
      assert tuple(best_paths) == (2,)
      assert best_cost == 7
  
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 35 for calling a global function with example usage: test_fast_selection_no_gap() without return types