code: def test_get_all_paths_recur_one():
      module = cellprofiler.modules.untangleworms.UntangleWorms()
  
      #
      # Branch # 0 connects segment 0 and segment 1
      #
      class Result(object):
          def __init__(self):
              self.incident_branch_areas = [[0], [0]]
              self.incident_segments = [[0, 1]]
              self.segments = [numpy.zeros((2, 1)), numpy.zeros((2, 1))]
              self.segment_lengths = [1, 1]
              self.incidence_directions = numpy.array([[False, True]])
  
      paths_list = list(
          module.get_all_paths_recur(Result(), [0], [[0]], 1, 0, 1000)
      )
      assert len(paths_list) == 1
      path = paths_list[0]
      assert isinstance(path, module.Path)
      assert tuple(path.segments) == (0, 1)
      assert tuple(path.branch_areas) == (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 17 for calling a global function with example usage: test_get_all_paths_recur_one() without return types