Creating tfrecords in tensorflow

Recently I have been trying to get my model to work on the google vision kit which requires the model to be trained on tensorflow. While creating TFrecords i am encountering the following error given in the last line, what could the reason be?