<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ensure_output(self):
 """ Ensure output's directory exists """

        if not os.path.exists(self.output):
            os.makedirs(self.output)