class_docstr: Abstract data generator.
class_docstr_tok: ["Abstract","data","generator","."]
code: def _filter_out_fake_inputs(
      array_of_array_of_features: FeatureArray,
  ) -> Union[List[List[np.ndarray]], List[List[scipy.sparse.spmatrix]]]:
      return list(
          filter(
              # filter empty lists created by another filter
              lambda x: len(x) > 0,
              [
                  # filter all the "fake" inputs, we know the input is "fake",
                  # when sequence dimension is `0`
                  list(
                      filter(
                          lambda x: x.shape[0] > 0, array_of_features
                      )
                  )
                  for array_of_features in array_of_array_of_features
              ],
          )
      )
  
imports: import math
  from typing import List, Union, Text, Optional, Any, Tuple, Dict, cast
  import logging
  import scipy.sparse
  import numpy
  from tensorflow.keras.utils import Sequence
  from rasa.utils.tensorflow.constants import SEQUENCE, BALANCED
  from rasa.utils.tensorflow.model_data import RasaModelData, Data, FeatureArray
label_desc: Use image node_id 11 for calling the RasaDataGenerator obj's underlying member method code with example usage: obj._filter_out_fake_inputs(array_of_array_of_features) and returns: list