code: def P2(self, value):
          
          if value > self.P1:
              self._P2 = value
          else:
              raise InvalidSecondDisparityChangePenaltyError("P2 must be greater "
                                                            "than P1.")
          self._replace_bm()
docs: Set private ``_P2`` and reset ``_block_matcher``.