class_docstr: Data object used for all RasaModels.
  
  It contains all features needed to train the models.
  'data' is a mapping of attribute name, e.g. TEXT, INTENT, etc., and feature name,
  e.g. SENTENCE, SEQUENCE, etc., to a list of feature arrays representing the actual
  features.
  'label_key' and 'label_sub_key' point to the labels inside 'data'. For
  example, if your intent labels are stored under INTENT -> IDS, 'label_key' would
  be "INTENT" and 'label_sub_key' would be "IDS".
class_docstr_tok: ["Data","object","used","for","all","RasaModels",".","It","contains","all","features","needed","to","train","the","models",".","'data","'","is","a","mapping","of","attribute","name",",","e.g",".","TEXT",",","INTENT",",","etc.",",","and","feature","name",",","e.g",".","SENTENCE",",","SEQUENCE",",","etc.",",","to","a","list","of","feature","arrays","representing","the","actual","features",".","'label_key","'","and","'label_sub_key","'","point","to","the","labels","inside","'data","'",".","For","example",",","if","your","intent","labels","are","stored","under","INTENT","-",">","IDS",",","'label_key","'","would","be","``","INTENT","''","and","'label_sub_key","'","would","be","``","IDS","''","."]
docstr: Return the data with just one feature example per key, sub-key.
  
  Returns:
      The simplified data.
docstr_tok: ["Return","the","data","with","just","one","feature","example","per","key",",","sub-key",".","Returns",":","The","simplified","data","."]
code: def first_data_example(self) -> Data:
      """Return the data with just one feature example per key, sub-key.
  
      Returns:
          The simplified data.
      """
      out_data: Data = {}
      for key, attribute_data in self.data.items():
          out_data[key] = {}
          for sub_key, features in attribute_data.items():
              feature_slices = [feature[:1] for feature in features]
              out_data[key][sub_key] = cast(
                  List[FeatureArray], feature_slices
              )
      return out_data
  
imports: import logging
  from typing import Optional, DefaultDict, Dict, Iterable, Text, List, Tuple, Any, Union, NamedTuple, ItemsView, overload, cast
  from collections import defaultdict, OrderedDict
  import numpy
  import scipy.sparse
  from sklearn.model_selection import train_test_split
label_desc: Use image node_id 9 for calling the RasaModelData obj's underlying member method code with example usage: obj.first_data_example() and returns: out_data