code: def connect_edge_at_index(g, source, dest, idx):
      if isinstance(source, str):
          source = g[source]
      if isinstance(dest, str):
          dest = g[dest]
      source.outputs.insert(idx, dest.name)
      dest.inputs.insert(idx, source.name)
  
label_desc: Use image node_id 2 for calling a global function with example usage: connect_edge_at_index(g, source, dest, idx) without return types