code: def test_masker_call_pretrained_tokenizer_fast():
      """Check that the Text masker with a fast pretrained tokenizer masks correctly."""
  
      AutoTokenizer = pytest.importorskip("transformers").AutoTokenizer
  
      tokenizer = AutoTokenizer.from_pretrained(
          "distilbert-base-uncased", use_fast=True
      )
      masker = shap.maskers.Text(tokenizer)
  
      test_text = "I ate a Cannoli"
      test_input_mask = np.array(
          [True, False, True, True, False, True, True, True]
      )
  
      output_masked_text = masker(test_input_mask, test_text)
      correct_masked_text = "[MASK]ate a [MASK]noli"
  
      assert output_masked_text[0] == correct_masked_text
  
file_path: shap/tests/maskers/test_text.py
imports: import tempfile
  import numpy
  import pytest
  import shap
label_desc: Use image node_id 4 for calling a global function with example usage: test_masker_call_pretrained_tokenizer_fast() without return types