code: def test_get_all_paths_many():
      module = cellprofiler.modules.untangleworms.UntangleWorms()
      numpy.random.seed(63)
  
      class Result(object):
          def __init__(self):
              self.branch_areas = [0, 1, 2]
              self.segments = [
                  [numpy.zeros((1, 2)), numpy.zeros((1, 2))]
              ] * 4
              self.incidence_directions = (
                  numpy.random.uniform(size=(3, 4)) > 0.25
              )
              self.incidence_matrix = self.incidence_directions | (
                  numpy.random.uniform(size=(3, 4)) > 0.25
              )
  
      graph = Result()
      path_list = module.get_all_paths(graph, 0, 1000)
      for path in path_list:
          assert len(path.segments) == len(path.branch_areas) + 1
          if len(path.segments) > 1:
              assert path.segments[0] < path.segments[-1]
              for prev, next, branch_area in zip(
                  path.segments[:-1],
                  path.segments[1:],
                  path.branch_areas,
              ):
                  assert graph.incidence_matrix[branch_area, prev]
                  assert graph.incidence_matrix[branch_area, next]
  
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 23 for calling a global function with example usage: test_get_all_paths_many() without return types