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