code: def get_example_features(example):
    
    return (example.features.feature if isinstance(example, tf.train.Example)
            else example.context.feature)
docs: Returns the non-sequence features from the provided example.