class_docstr: Wrapper for AST query.
  Intended to ind, track, update last values in query
class_docstr_tok: ["Wrapper","for","AST","query",".","Intended","to","ind",",","track",",","update","last","values","in","query"]
docstr: Fills query with new values and return it
docstr_tok: ["Fills","query","with","new","values","and","return","it"]
code: def apply_values(self, values: dict) -> ASTNode:
      """
      Fills query with new values and return it
      """
      for table_name, info in self.last_tables.items():
          value = values.get(table_name, {}).get(info["column"])
          for last in info["links"]:
              last.value = value
  
      return self.query
  
file_path: mindsdb/mindsdb/interfaces/query_context/last_query.py
imports: from typing import Union, List
  import copy
  from collections import defaultdict
  from mindsdb_sql.parser.ast import Identifier, Select, BinaryOperation, Last, Constant, Star, ASTNode, NullConstant, OrderBy
  from mindsdb_sql.planner.utils import query_traversal
label_desc: Use image node_id 5 for calling the LastQuery obj's underlying member method code with example usage: obj.apply_values(values) and returns: self