def relock(self):
response = self._requester.request(<EOL>'<STR_LIT>',<EOL>'<STR_LIT>'.format(self.course_id, self.id),<EOL>)<EOL>module_json = response.json()<EOL>module_json.update({'<STR_LIT>': self.course_id})<EOL>return Module(self._requester, module_json)<EOL>
Reset module progressions to their default locked state and recalculates
them based on the current requirements.

Adding progression requirements to an active course will not lock students
out of modules they have already unlocked unless this action is called.

:calls: `PUT /api/v1/courses/:course_id/modules/:id/relock \
<https://canvas.instructure.com/doc/api/modules.html#method.context_modules_api.relock>`_

:rtype: :class:`canvasapi.module.Module`