@classmethod<EOL><INDENT>def create_from_tuple(cls, tube, the_tuple):<DEDENT>
if the_tuple is None:<EOL><INDENT>return<EOL><DEDENT>if not the_tuple.rowcount:<EOL><INDENT>raise Queue.ZeroTupleException("<STR_LIT>")<EOL><DEDENT>row = the_tuple[<NUM_LIT:0>]<EOL>return cls(<EOL>tube,<EOL>task_id=row[<NUM_LIT:0>],<EOL>state=row[<NUM_LIT:1>],<EOL>data=row[<NUM_LIT:2>]<EOL>)<EOL>
Create task from tuple.

Returns `Task` instance.