<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def angle(self, vertices):
 """ If Text is 2D, get the rotation angle in radians. Parameters vertices : (n, 2) float Vertices in space referenced by self.points Returns --------- angle : float Rotation angle in radians """


        if vertices.shape[1] != 2:
            raise ValueError('angle only valid for 2D points!')

        # get the vector from origin
        direction = vertices[self.vector] - vertices[self.origin]
        # get the rotation angle in radians
        angle = np.arctan2(*direction[::-1])

        return angle