code: def _valid_table_name(self, table):
          
          if table is None or not len(table.strip()):
              raise ValueError("Invalid table name: %r" % table)
          return table.strip()
docs: Check if the table name is obviously invalid.