<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cursor(self):
 """ Create a new ``Cursor`` instance associated with this ``Connection`` :return: A new ``Cursor`` instance """

        self._assert_valid()
        c = Cursor(self.impl.cursor())
        self.cursors.add(c)
        return c