<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_from_tuple(cls, tube, the_tuple):
 """ Create task from tuple. Returns `Task` instance. """

        if the_tuple is None:
            return

        if not the_tuple.rowcount:
            raise Queue.ZeroTupleException("Error creating task")

        row = the_tuple[0]

        return cls(
            tube,
            task_id=row[0],
            state=row[1],
            data=row[2]
        )