docstr: Handles the connection to a YugabyteSQL database insance.
docstr_tok: ["Handles","the","connection","to","a","YugabyteSQL","database","insance","."]
code: def connect(self):
      """
      Handles the connection to a YugabyteSQL database insance.
      """
      if self.is_connected is True:
          return self.connection
  
      args = {
          "database": self.connection_data.get("database"),
          "host": self.connection_data.get("host"),
          "port": self.connection_data.get("port"),
          "username": self.connection_data.get("user"),
          "password": self.connection_data.get("password"),
          "clustered": self.connection_data.get("clustered", False),
          "use_ssl": self.connection_data.get("use_ssl", False),
          "service": self.connection_data.get("service", "sqream"),
      }
  
      connection = db.connect(**args)
  
      self.is_connected = True
      self.connection = connection
      return self.connection
  
imports: from collections import OrderedDict
  from typing import Optional
  from mindsdb_sql.parser.ast.base import ASTNode
  from mindsdb.integrations.libs.base import DatabaseHandler
  from mindsdb.utilities import log
  from mindsdb_sql import parse_sql
  from mindsdb_sql.render.sqlalchemy_render import SqlalchemyRender
  from mindsdb.integrations.libs.response import HandlerStatusResponse, HandlerResponse, RESPONSE_TYPE
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
  import pandas
  import pysqream
  from pysqream_sqlalchemy.dialect import SqreamDialect
label_desc: Use image node_id 2 for calling the SQreamDBHandler obj's underlying member method code with example usage: obj.connect() and returns: self, self