// Even if the file doesn"t exist, this session never gets executed we just// use it to find out if the string_to_index_table_from_file initializer is// compatible with tf.Transform.
vocabulary_file = tf.constant("__test_file__")
tf.contrib.lookup.string_to_index_table_from_file(
vocabulary_file=vocabulary_file)
except TypeError:
// Catch the following error from the previous TF version: