code: def test_word_to_tokens(self, encodings):
      single, pair = encodings
  
      assert single.tokens == [
          "[CLS]",
          "i",
          "love",
          "hugging",
          "##face",
          "[SEP]",
      ]
      assert single.word_to_tokens(0) == (1, 2)
  
      assert pair.tokens == [
          "[CLS]",
          "i",
          "love",
          "hugging",
          "##face",
          "[SEP]",
          "do",
          "you",
          "?",
          "[SEP]",
      ]
      assert pair.word_to_tokens(0) == (1, 2)
      assert pair.word_to_tokens(0, 0) == (1, 2)
      assert pair.word_to_tokens(6, 0) == None
      assert pair.word_to_tokens(0, 1) == (6, 7)
  
file_path: hf-tokenizers/bindings/python/tests/bindings/test_encoding.py
imports: import pytest
  from tokenizers import BertWordPieceTokenizer
  from ..utils import bert_files, data_dir
label_desc: Use image node_id 4 for calling the TestEncoding obj's underlying member method code with example usage: obj.test_word_to_tokens(encodings) without return types