code: def get_integration_record(name: str) -> db.Integration:
      company_id = ctx.company_id
      if company_id is None:
          company_id = null()
  
      record = (
          db.session.query(db.Integration)
          .filter_by(company_id=company_id, name=name)
          .first()
      )
      return 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 1 for calling a global function with example usage: get_integration_record(name) and returns: record