code: def same_partial_index(self, other):
          
          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
docs: Return whether the two indexes have the same partial index
  
          :param other: The other index
          :type other: Index
  
          :rtype: bool