code: def _dict_to_tf_features(example_dict):
    
    features = {k: _item_to_tf_feature(v, k) for k, v
                in six.iteritems(example_dict)}
    return tf.train.Features(feature=features)
docs: Builds tf.train.Features from (string -> int/float/str list) dictionary.