code: def remove_lasts(self, query):
      def replace_lasts(node, **kwargs):
          # find last in where
          if isinstance(node, BinaryOperation):
              if isinstance(node.args[0], Identifier) and isinstance(
                  node.args[1], Last
              ):
                  # memorize node
                  return BinaryOperation(
                      op="=", args=[Constant(0), Constant(0)]
                  )
  
      # find lasts
      query_traversal(query, replace_lasts)
  
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 2 for calling the QueryContextController obj's underlying member method code with example usage: obj.remove_lasts(query) and returns: BinaryOperation