code: def get_trigger_record(self, name, project_name):
      project_controller = ProjectController()
      project = project_controller.get(name=project_name)
  
      query = (
          db.session.query(db.Triggers)
          .join(db.Tasks, db.Triggers.id == db.Tasks.object_id)
          .filter(
              db.Triggers.project_id == project.id,
              db.Triggers.name == name,
              db.Tasks.object_type == self.OBJECT_TYPE,
              db.Tasks.company_id == ctx.company_id,
          )
      )
      return query.first()
  
file_path: mindsdb/mindsdb/interfaces/triggers/triggers_controller.py
imports: from mindsdb_sql.parser.ast import Identifier
  from mindsdb_sql import parse_sql, ParsingException
  from mindsdb.interfaces.storage import db
  from mindsdb.interfaces.database.projects import ProjectController
  from mindsdb.utilities.context import context
  from mindsdb.api.executor.controllers.session_controller import SessionController
label_desc: Use image node_id 3 for calling the TriggersController obj's underlying member method code with example usage: obj.get_trigger_record(name, project_name) and returns: query