code: def isempty(self, tables=None):
          
          tables = tables or self.tables
  
          for table in tables:
              if self.num_rows(table) > 0:
                  return False
  
          return True
docs: Return whether a table or the entire database is empty.
  
          A database is empty is if it has no tables. A table is empty
          if it has no rows.
  
          Arguments:
  
              tables (sequence of str, optional): If provided, check
                that the named tables are empty. If not provided, check
                that all tables are empty.
  
          Returns:
  
              bool: True if tables are empty, else false.
  
          Raises:
  
              sql.OperationalError: If one or more of the tables do not
                exist.