<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _is_homogeneous_type(self):
 """ Whether all the columns in a DataFrame have the same type. Returns ------- bool Examples -------- True False Items with the same type but different sizes are considered different types. False """

        if self._data.any_extension_types:
            return len({block.dtype for block in self._data.blocks}) == 1
        else:
            return not self._data.is_mixed_type