code: def connect_edge(g, source, dest):
      if isinstance(source, six.string_types):
          source = g[source]
      if isinstance(dest, six.string_types):
          dest = g[dest]
      source.outputs.append(dest.name)
      dest.inputs.append(source.name)
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import six
label_desc: Use image node_id 1 for calling a global function with example usage: connect_edge(g, source, dest) without return types