code: def _setsession(self, con=None):
          
          if con is None:
              con = self._con
          if self._setsession_sql:
              cursor = con.cursor()
              for sql in self._setsession_sql:
                  cursor.execute(sql)
              cursor.close()
docs: Execute the SQL commands for session preparation.