code: def model_experiments(model_name):
      model = base_controller.model.__dict__
      if model_name == model["name"]:
          tasks = base_controller.dal.task.query(
              {"model_id": model["id"]}
          )
          experiments = [Run(task) for task in tasks]
          for experiment in experiments:
              experiment.config_printable = printable_object(
                  experiment.config
              )
              experiment.start_time_prettified = prettify_datetime(
                  experiment.start_time
              )
              experiment.end_time_prettified = prettify_datetime(
                  experiment.end_time
              )
              experiment.results_printable = printable_object(
                  experiment.results
              )
      else:
          experiments = []
      return render_template(
          "model_experiments.html",
          user=user,
          model=model,
          experiments=experiments,
      )
  
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 3 for calling a global function with example usage: model_experiments(model_name) and returns: render_template