docstr: Creates record (for context and query string) with values and returns it
docstr_tok: ["Creates","record","(","for","context","and","query","string",")","with","values","and","returns","it"]
code: def __add_context_record(
      self, context_name: str, query_str: str, values: dict
  ) -> db.QueryContext:
      """
      Creates record (for context and query string) with values and returns it
      """
      rec = db.QueryContext(
          query=query_str,
          context_name=context_name,
          company_id=ctx.company_id,
          values=values,
      )
      db.session.add(rec)
      return rec
  
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 12 for calling the QueryContextController obj's underlying member method code with example usage: obj.__add_context_record(context_name, query_str, values) and returns: rec