<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _GetTableNames(self, database):
 """Retrieves the table names in a database. Args: database (pyesedb.file):
 ESE database. Returns: list[str]: table names. """

    table_names = []
    for esedb_table in database.tables:
      table_names.append(esedb_table.name)

    return table_names