<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def initialize_partition_table(self, format_p, whole_disk_in_one_entry):
 """Writes an empty partition table to the disk. in format_p of type :class:`PartitionTableType` The partition table format. in whole_disk_in_one_entry of type bool When @c true a partition table entry for the whole disk is created. Otherwise the partition table is empty. """

        if not isinstance(format_p, PartitionTableType):
            raise TypeError("format_p can only be an instance of type PartitionTableType")
        if not isinstance(whole_disk_in_one_entry, bool):
            raise TypeError("whole_disk_in_one_entry can only be an instance of type bool")
        self._call("initializePartitionTable",
                     in_p=[format_p, whole_disk_in_one_entry])