code: def apply_styles(graph, styles):
      """Applies styles to the graph."""
      graph.graph_attr.update(
          ("graph" in styles and styles["graph"]) or {}
      )
      graph.node_attr.update(
          ("nodes" in styles and styles["nodes"]) or {}
      )
      graph.edge_attr.update(
          ("edges" in styles and styles["edges"]) or {}
      )
      return graph
  
file_path: dragonfly/dragonfly/nn/nn_visualise.py
imports: import functools
  import os
label_desc: Use image node_id 3 for calling a global function with example usage: apply_styles(graph, styles) and returns: graph