# can't get variables from TF collection

Aurelion Geron's example shows how to stored selected operations in a collection, so they can then be easily accessed later:

for op in (X, y, accuracy, training_op):


Then retrieving:

X, y, accuracy, training_op = tf.get_collection("my_important_ops")


However when I try to do this I get this error:

X, y, accuracy, training_op = tf.get_collection("my_important_ops")
ValueError: too many values to unpack (expected 4)


What am I doing wrong?

temp = tf.get_collection("my_important_ops")