TrainingData.filter_training_examples in actiion.py

I want to filter utterances according to the user’s message and get all intents that contain the user’s message, I tried to use " filter_training_examples " inside the actions.py file but it didn’t work well could someone advise me how to use " filter_training_examples " ?