docs: def get_model():
      """Get the NN model that's being analyzed from the request context.  Put
      the model in the request context if it is not yet there.
  
      Returns:
          instance of :class:`.models.model.Model` or derived
          class
      """
      if not hasattr(g, 'model'):
          g.model = load_model(current_app.config['MODEL_CLS_PATH'],
                               current_app.config['MODEL_CLS_NAME'],
                               current_app.config['MODEL_LOAD_ARGS'])
      return g.model