code: def get_predictor_integration(record: db.Predictor) -> db.Integration:
      integration_record = (
          db.session.query(db.Integration)
          .filter_by(id=record.integration_id)
          .first()
      )
      return integration_record
  
file_path: mindsdb/mindsdb/interfaces/model/functions.py
imports: from typing import Optional
  from sqlalchemy import null, func
  import mindsdb.interfaces.storage.db
  from mindsdb.utilities.context import context
  import mindsdb.utilities.profiler
label_desc: Use image node_id 3 for calling a global function with example usage: get_predictor_integration(record) and returns: integration_record