code: def verify_base_learner_origin(id):
      path = functions.get_path_from_query_string(request)
  
      with functions.DBContextManager(path) as session:
          base_learner_origin = (
              session.query(models.BaseLearnerOrigin)
              .filter_by(id=id)
              .first()
          )
          if base_learner_origin is None:
              raise exceptions.UserError(
                  "Base learner origin {} not found".format(id), 404
              )
  
          if request.method == "POST":
              req_body = request.get_json()
              if base_learner_origin.final:
                  raise exceptions.UserError(
                      "Base learner origin {} "
                      "is already final".format(id)
                  )
              base_learner = base_learner_origin.return_estimator()
              (
                  validation_results,
                  hyperparameters,
              ) = functions.verify_estimator_class(
                  base_learner,
                  base_learner_origin.meta_feature_generator,
                  base_learner_origin.metric_generators,
                  req_body["dataset_properties"],
              )
              base_learner_origin.validation_results = {
                  "dataset": req_body["dataset_properties"],
                  "metrics": validation_results,
              }
              base_learner_origin.hyperparameters = hyperparameters
              session.add(base_learner_origin)
              session.commit()
              return jsonify(base_learner_origin.serialize)
  
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 16 for calling a global function with example usage: verify_base_learner_origin(id) and returns: jsonify