class_docstr: SessionController implementation for case of Executor service.
  The difference with SessionController is that there is an id in this one.
  The instance uses the id to synchronize its settings with the appropriate
  ServiceSessionController instance on the Executor side.
class_docstr_tok: ["SessionController","implementation","for","case","of","Executor","service",".","The","difference","with","SessionController","is","that","there","is","an","id","in","this","one",".","The","instance","uses","the","id","to","synchronize","its","settings","with","the","appropriate","ServiceSessionController","instance","on","the","Executor","side","."]
code: def __init__(self):
      super().__init__()
      self.id = f"session_{uuid4()}"
      self.executor_url = os.environ.get("MINDSDB_EXECUTOR_URL", None)
      self.executor_host = os.environ.get(
          "MINDSDB_EXECUTOR_SERVICE_HOST", None
      )
      self.executor_port = os.environ.get(
          "MINDSDB_EXECUTOR_SERVICE_PORT", None
      )
      if (
          self.executor_host is None or self.executor_port is None
      ) and self.executor_url is None:
          raise Exception(
              f"""{self.__class__.__name__} can be used only in modular mode of MindsDB.
                              Use Executor as a service and specify MINDSDB_EXECUTOR_URL env variable"""
          )
      logger.info(
          "%s.__init__: executor url - %s",
          self.__class__.__name__,
          self.executor_url,
      )
  
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 1 to create a new ServerSessionContorller object from inherited base classes: SessionController with example: obj = ServerSessionContorller()