<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def one(self):
 """Return a tensor of all ones. Examples -------- rn(3).element([ 1., 1., 1.]) """

        return self.element(np.ones(self.shape, dtype=self.dtype,
                                    order=self.default_order))