def _check_connection(self, check_db=True) -> None:
    'Raise connection InterfaceError if not connected\n        Defaults to check if a db is connected'
    if (not self._connected):
        raise InterfaceError('Client is not connected to a TerminusDB server.')
    if (check_db and (self.db is None)):
        raise InterfaceError('No database is connected. Please either connect to a database or create a new database.')
Raise connection InterfaceError if not connected
Defaults to check if a db is connected
def _check_connection(self, check_db=True) -> None:
    'Raise connection InterfaceError if not connected\n        Defaults to check if a db is connected'
    if (not self._connected):
        raise InterfaceError('Client is not connected to a TerminusDB server.')
    if (check_db and (self.db is None)):
        raise InterfaceError('No database is connected. Please either connect to a database or create a new database.')