code: def test_keep_prefix_suffix_tokenizer_parsing():
      """Checks parsed keep prefix and keep suffix for different tokenizers."""
  
      AutoTokenizer = pytest.importorskip("transformers").AutoTokenizer
  
      tokenizer_mt = AutoTokenizer.from_pretrained(
          "Helsinki-NLP/opus-mt-en-es"
      )
      tokenizer_gpt = AutoTokenizer.from_pretrained("gpt2")
      tokenizer_bart = AutoTokenizer.from_pretrained(
          "sshleifer/distilbart-xsum-12-6"
      )
  
      masker_mt = shap.maskers.Text(tokenizer_mt)
      masker_gpt = shap.maskers.Text(tokenizer_gpt)
      masker_bart = shap.maskers.Text(tokenizer_bart)
  
      masker_mt_expected_keep_prefix, masker_mt_expected_keep_suffix = (
          0,
          1,
      )
      (
          masker_gpt_expected_keep_prefix,
          masker_gpt_expected_keep_suffix,
      ) = (0, 0)
      (
          masker_bart_expected_keep_prefix,
          masker_bart_expected_keep_suffix,
      ) = (1, 1)
  
      assert (
          masker_mt.keep_prefix == masker_mt_expected_keep_prefix
          and masker_mt.keep_suffix == masker_mt_expected_keep_suffix
          and masker_gpt.keep_prefix == masker_gpt_expected_keep_prefix
          and masker_gpt.keep_suffix == masker_gpt_expected_keep_suffix
          and masker_bart.keep_prefix
          == masker_bart_expected_keep_prefix
          and masker_bart.keep_suffix
          == masker_bart_expected_keep_suffix
      )
  
file_path: shap/tests/maskers/test_text.py
imports: import tempfile
  import numpy
  import pytest
  import shap
label_desc: Use image node_id 6 for calling a global function with example usage: test_keep_prefix_suffix_tokenizer_parsing() without return types