code: def complete_render_model_graph(model, custom_ops=None):
      graph = Graph.from_graphdef(model.graph_def)
      include_ops = standard_include_ops
      if custom_ops is not None:
          include_ops += custom_ops
      graph = filter_graph_ops(graph, include_ops=include_ops)
      graph = filter_graph_dynamic(graph)
      graph = filter_graph_collapse_sequence(graph, ["Conv2D", "Relu"])
      parsed_graph = parse_graph(graph)
      # parsed_graph.render().show()
      if "Resnet" in model.model_path:
          print((parsed_graph.alignment))
          parsed_graph.alignment = "min"
  
      groups = find_groups(graph)
  
      return render_with_groups(parsed_graph, groups)
  
imports: import numpy
  import tensorflow
  import lucid.modelzoo.vision_models
  import lucid.optvis.objectives
  import lucid.optvis.param
  import lucid.optvis.render
  from lucid.misc.io import show, load
  from lucid.misc.io.showing import _image_url, _display_html
  from collections import defaultdict
  from lucid.scratch.pretty_graphs.graph import *
label_desc: Use image node_id 5 for calling a global function with example usage: complete_render_model_graph(model, custom_ops) and returns: render_with_groups