code: def specific_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 == "GET":
              return jsonify(base_learner_origin.serialize)
  
          if request.method == "PATCH":
              if base_learner_origin.final:
                  raise exceptions.UserError(
                      "Cannot modify a final base learner origin"
                  )
              req_body = request.get_json()
  
              modifiable_attr = (
                  "meta_feature_generator",
                  "name",
                  "source",
                  "metric_generators",
              )
              for attr in modifiable_attr:
                  if attr in req_body:
                      setattr(base_learner_origin, attr, req_body[attr])
  
              session.add(base_learner_origin)
              session.commit()
              return jsonify(base_learner_origin.serialize)
  
          if request.method == "DELETE":
              base_learner_origin.cleanup(path)
              session.delete(base_learner_origin)
              session.commit()
              return jsonify(message="Deleted base learner origin")
  
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 15 for calling a global function with example usage: specific_base_learner_origin(id) and returns: jsonify, jsonify, jsonify