<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: """ Creates a named temporary file within a given container. Returns: the absolute path to the created temporary file. """

        logger.debug("creating a temporary file inside container %s",
                     container.uid)
        response = self.command(container, "mktemp")

        if response.code != 0:
            msg = "failed to create temporary file for container {}: [{}] {}"
            msg = msg.format(uid, response.code, response.output)
            logger.error(msg)
            raise Exception(msg)  # FIXME add new exception

        assert response.code == 0, "failed to create temporary file"
        fn = response.output.strip()
        logger.debug("created temporary file inside container %s: %s",
                     container.uid, fn)
        return fn