<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def can_compare_pairwise(self):
 """Return bool indicating if slice can compute pairwise comparisons. Currently, only the CAT x CAT slice can compute pairwise comparisons. This also includes the categorical array categories dimnension (CA_CAT). """

        if self.ndim != 2:
            return False

        return all(dt in DT.ALLOWED_PAIRWISE_TYPES for dt in self.dim_types)