code: def find_join_node(source, target, succ_num, parent, in_arc):
      u = source[in_arc]
      v = target[in_arc]
      while u != v:
          if succ_num[u] < succ_num[v]:
              u = parent[u]
          else:
              v = parent[v]
  
      join = u
  
      return join
  
imports: import numpy
  import numba
  from collections import namedtuple
  from enum import Enum, IntEnum
label_desc: Use image node_id 3 for calling a global function with example usage: find_join_node(source, target, succ_num, parent, in_arc) and returns: join