docstr: Return variables stored in context (defined by object type and id)
  
  :return: list of all context variables related to context name how they stored in context table
docstr_tok: ["Return","variables","stored","in","context","(","defined","by","object","type","and","id",")",":","return",":","list","of","all","context","variables","related","to","context","name","how","they","stored","in","context","table"]
code: def get_context_vars(
      self, object_type: str, object_id: int
  ) -> List[dict]:
      """
      Return variables stored in context (defined by object type and id)
  
      :return: list of all context variables related to context name how they stored in context table
      """
      context_name = self.gen_context_name(object_type, object_id)
      vars = []
      for rec in db.session.query(db.QueryContext).filter_by(
          context_name=context_name, company_id=ctx.company_id
      ):
          if rec.values is not None:
              vars.append(rec.values)
  
      return vars
  
imports: from typing import List
  import pandas
  from mindsdb_sql.parser.ast import Identifier, BinaryOperation, Last, Constant, ASTNode
  from mindsdb_sql.planner.utils import query_traversal
  from mindsdb.interfaces.storage import db
  from mindsdb.utilities.context import context
  from .last_query import LastQuery
label_desc: Use image node_id 10 for calling the QueryContextController obj's underlying member method code with example usage: obj.get_context_vars(object_type, object_id) and returns: vars