def make_data_tuple_from_list(lst, serializer=PythonSerializer()):
data_tuple = tuple_pb2.HeronDataTuple()<EOL>data_tuple.key = <NUM_LIT:0><EOL>tuple_size_in_bytes = <NUM_LIT:0><EOL>for obj in lst:<EOL><INDENT>serialized = serializer.serialize(obj)<EOL>data_tuple.values.append(serialized)<EOL>tuple_size_in_bytes += len(serialized)<EOL><DEDENT>return data_tuple, tuple_size_in_bytes<EOL>
Make HeronDataTuple from a list of objects