code: def get_base_learners():
      path = functions.get_path_from_query_string(request)
  
      with functions.DBContextManager(path) as session:
          base_learners = session.query(models.BaseLearner).all()
  
          if request.method == "GET":
              return jsonify(
                  list(map(lambda x: x.serialize, base_learners))
              )
  
          if (
              request.method == "DELETE"
          ):  # Go crazy and delete everything
              for base_learner in base_learners:
                  base_learner.delete_meta_features(path)
                  session.delete(base_learner)
              session.commit()
              return jsonify(message="Deleted all base learners")
  
imports: from __future__ import absolute_import, print_function, division, unicode_literals
  import os
  from flask import request, jsonify, send_from_directory, g
  from redis import Redis
  from rq import Connection
  from sqlalchemy import create_engine
  from sklearn.model_selection import ParameterGrid
  from sklearn.model_selection import ParameterSampler
  from xcessiv import app, functions, exceptions, models, rqtasks
  from xcessiv.presets import learnersetting, metricsetting, cvsetting
  import six
label_desc: Use image node_id 22 for calling a global function with example usage: get_base_learners() and returns: jsonify, jsonify