code: def test_explain_weights_feature_filter(newsgroups_train, lgb_clf):
      _check_rf_feature_filter(newsgroups_train, lgb_clf)
  
imports: from __future__ import absolute_import
  import pytest
  import numpy
  from sklearn.feature_extraction.text import CountVectorizer
  from lightgbm import LGBMClassifier, LGBMRegressor
  from eli5 import explain_weights, explain_prediction
  from .test_sklearn_explain_weights import test_explain_tree_classifier, test_explain_random_forest_and_tree_feature_filter, test_feature_importances_no_remaining, test_explain_tree_regressor
  from .test_sklearn_explain_prediction import assert_linear_regression_explained, test_explain_prediction_pandas, test_explain_clf_binary_iris
  from .utils import format_as_all, check_targets_scores, get_all_features
label_desc: Use image node_id 3 for calling a global function with example usage: test_explain_weights_feature_filter(newsgroups_train, lgb_clf) without return types