docstr: Tests if the masks contain extreme samples (1 or all features).
docstr_tok: ["Tests","if","the","masks","contain","extreme","samples","(","1","or","all","features",")","."]
code: def test_sample_masks_contains_extreme_samples(self):
      """Tests if the masks contain extreme samples (1 or all features)."""
      num_samples = 1000
      num_features = 10
      masks = lime.sample_masks(num_samples, num_features, seed=0)
      num_disabled = (~masks).sum(axis=-1)
      self.assertEqual(1, min(num_disabled))
      self.assertEqual(num_features, max(num_disabled))
  
imports: import collections
  import functools
  from absl.testing import absltest
  from absl.testing import parameterized
  from lime import lime_text
  from lit_nlp.components.citrus import lime
  from lit_nlp.components.citrus import utils
  import numpy
  from scipy import special
  from scipy import stats
label_desc: Use image node_id 2 for calling the LimeTest obj's underlying member method code with example usage: obj.test_sample_masks_contains_extreme_samples() without return types