<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_one(self):
 """ Check that all the inner weights are 1 up to the precision """

        return all(abs(v - 1.) < pmf.PRECISION for v in self.dic.values())