<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_duration(self, seconds=False):
 """ Get test case duration. :param seconds: if set to True, return tc duration in seconds, otherwise as str( datetime.timedelta) :return: str(datetime.timedelta) or duration as string in seconds """

        if seconds:
            return str(self.duration)
        delta = datetime.timedelta(seconds=self.duration)
        return str(delta)