code: def handleChartException(function):
      """
      A decorator that wraps the given chart-generation function and handles and exceptions that might have been thrown during.
  
      Said exceptions are ignored except when developing since they usually come from poor data that isn't useful to plot anyhow
      """
  
      @functools.wraps(function)
      def wrapper(*args, **kwargs):
          try:
              return function(*args, **kwargs)
          except Exception as e:
              plt.close("all")
              # traceback.print_exc()
              # raise # reraise the exception and allow it to bubble so developers can catch why the charts aren't being generated.
  
      return wrapper
  
imports: import jsonschema
  import os
  import os.path
  import math
  import csv
  from hypermax.hyperparameter import Hyperparameter
  import sklearn.covariance
  import numpy
  from hypermax.utils import roundPrecision
  import matplotlib
  import matplotlib.cm
  import matplotlib.style
  import matplotlib.pyplot
  from pprint import pprint
  import concurrent.futures
  import colors
  import traceback
  import functools
  import warnings
  import scipy.optimize
  import random
  import json
  import atexit
  import matplotlib.ticker
  import traceback
  import copy
label_desc: Use image node_id 1 for calling a global function with example usage: handleChartException(function) and returns: wrapper, function