code: def add_edges(graph, edges):
      """Adds edges to the graph."""
      # pylint: disable=star-args
      for e in edges:
          if isinstance(e[0], tuple):
              graph.edge(*e[0], **e[1])
          else:
              graph.edge(*e)
      return graph
  
file_path: dragonfly/dragonfly/nn/nn_visualise.py
imports: import functools
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: add_edges(graph, edges) and returns: graph