class_docstr: base class to work with chatbot memory
class_docstr_tok: ["base","class","to","work","with","chatbot","memory"]
code: def get_chat(self, chat_id):
      return ChatMemory(self, chat_id)
  
imports: from mindsdb_sql.parser.ast import Identifier, Select, BinaryOperation, Constant, OrderBy
  from mindsdb.interfaces.storage import db
  from .types import ChatBotMessage
label_desc: Use image node_id 2 for calling the BaseMemory obj's underlying member method code with example usage: obj.get_chat(chat_id) and returns: ChatMemory