code: def test_intra_word_tokenize_whitespaces(self):
      tokenizer = PretrainedTransformerTokenizer("bert-base-cased")
  
      sentence = [
          "A,",
          " ",
          "[MASK]",
          "AllenNLP",
          "\u007f",
          "sentence.",
      ]
      expected_tokens = [
          "[CLS]",
          "A",
          ",",
          "[MASK]",
          "Allen",
          "##NL",
          "##P",
          "sentence",
          ".",
          "[SEP]",
      ]
      expected_offsets = [(1, 2), None, (3, 3), (4, 6), None, (7, 8)]
      tokens, offsets = tokenizer.intra_word_tokenize(sentence)
      tokens = [t.text for t in tokens]
      assert tokens == expected_tokens
      assert offsets == expected_offsets
  
imports: from typing import Iterable, List
  import pytest
  from allennlp.common import Params
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data import Token
  from allennlp.data.tokenizers import PretrainedTransformerTokenizer
label_desc: Use image node_id 12 for calling the TestPretrainedTransformerTokenizer obj's underlying member method code with example usage: obj.test_intra_word_tokenize_whitespaces() without return types