code: def restore_collection(backup):
      
      for k, v in six.iteritems(backup):
          del tf.get_collection_ref(k)[:]
          tf.get_collection_ref(k).extend(v)
docs: Restore from a collection backup.
  
      Args:
          backup (dict):