<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def same_partial_index(self, other):
 """ Return whether the two indexes have the same partial index :param other: The other index :type other: Index :rtype: bool """

        if (
            self.has_option("where")
            and other.has_option("where")
            and self.get_option("where") == other.get_option("where")
        ):
            return True

        if not self.has_option("where") and not other.has_option("where"):
            return True

        return False