<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def mktemp(self, container: Container) -> str: """ Generates a temporary file for a given container. Returns: the path to the temporary file inside the given container. """

        r = self.__api.post('containers/{}/tempfile'.format(container.uid))
        if r.status_code == 200:
            return r.json()
        self.__api.handle_erroneous_response(r)