<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def mouse_rotate(self, dx, dy):
        '''Convenience function to implement the mouse rotation by
        giving two displacements in the x and y directions.

        '''
        fact = 1.5
        self.orbit_y(-dx*fact)
        self.orbit_x(dy*fact)