code: def model_summary(model_name):
      model = base_controller.model.__dict__
      snapshots = [
          {
              "id": "alfwokd",
              "created_at": "Sun March 3rd, 2018",
              "labels": ["cool", "default"],
              "config": {"algorithm": "random forest"},
              "stats": {"accuracy": 0.98},
          },
      ]
      config_keys = ["algorithm"]
      stats_keys = ["accuracy"]
      return render_template(
          "model_summary.html",
          user=user,
          model=model,
          snapshots=snapshots,
          config_keys=config_keys,
          stats_keys=stats_keys,
      )
  
imports: import os
  import shutil
  import uuid
  import json
  from flask import Flask, url_for
  from flask import render_template, request, jsonify
  import plotly
  from datetime import datetime
  from datmo.config import Config
  from datmo.core.entity.run import Run
  from datmo.core.controller.base import BaseController
  from datmo.core.util.misc_functions import prettify_datetime, printable_object
label_desc: Use image node_id 2 for calling a global function with example usage: model_summary(model_name) and returns: render_template