code: def stop_trial(id):
      """
      Put stopping id on queue.
      """
      app.stopping_channel.put(int(id))
      logger.info("Selected Trial {} to stop.".format(id))
      # logger.debug(app.stopping_channel)
      return redirect("/index")
  
file_path: sherpa/sherpa/app/app.py
imports: import logging
  import pandas
  from flask import Flask
  from flask import render_template, flash, redirect
label_desc: Use image node_id 2 for calling a global function with example usage: stop_trial(id) and returns: redirect