'Extract text for a feature from td.Example.
Args:
ex: tf.Example.
key: key of the feature to be extracted.
Returns:
feature: a feature text extracted.'

def _GetExFeatureText(self, ex, key):

    return ex.features.feature[key].bytes_list.value[0]
