class_docstr: This class manages the server session
class_docstr_tok: ["This","class","manages","the","server","session"]
code: def register_stmt(self, statement):
      i = 1
      while i in self.prepared_stmts and i < 100:
          i = i + 1
      if i == 100:
          raise Exception("Too many unclosed queries")
  
      self.prepared_stmts[i] = dict(
          type=None, statement=statement, fetched=0
      )
      return i
  
imports: import os
  from uuid import uuid4
  import requests
  from mindsdb.api.executor.datahub.datahub import init_datahub
  from mindsdb.utilities.config import Config
  from mindsdb.interfaces.agents.agents_controller import AgentsController
  from mindsdb.interfaces.model.model_controller import ModelController
  from mindsdb.interfaces.database.database import DatabaseController
  from mindsdb.interfaces.database.integrations import integration_controller
  from mindsdb.interfaces.skills.skills_controller import SkillsController
  from mindsdb.utilities import log
label_desc: Use image node_id 3 for calling the SessionController obj's underlying member method code with example usage: obj.register_stmt(statement) and returns: i