def METHOD_NAME(self, table_data: dict, clear: bool = True) -> None:
    """
    init table data
    """
    for table, data_list in table_data.items():
        if clear:
            self.delete_data(table)
        for data in data_list:
            self.insert_data(table, data)
    self.close()