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