code: def add_nodes(graph, nodes):
      """Adds nodes to the graph."""
      for n in nodes:
          if isinstance(n, tuple):
              graph.node(n[0], **n[1])
          else:
              graph.node(n)
      return graph
  
file_path: dragonfly/dragonfly/nn/nn_visualise.py
imports: import functools
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: add_nodes(graph, nodes) and returns: graph