<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fetch(self):
 """Samples up to maximum difficulty."""

    length = np.random.randint(1, self._max_length + 1)
    nesting = np.random.randint(1, self._max_length + 1)
    return length, nesting