code: def test_sentencepiece_tok_idx_proj_2():
      src_tokens = [
          "I",
          "look",
          "at",
          "Sarah's",
          "dog.",
          "It",
          "was",
          "cute.!",
      ]
      tgt_tokens = [
          "▁I",
          "▁look",
          "▁at",
          "▁Sarah",
          "'",
          "s",
          "▁dog",
          ".",
          "▁It",
          "▁was",
          "▁cute",
          ".",
          "!",
      ]
      tgt_token_index = [
          [0],
          [1],
          [2],
          [3, 4, 5],
          [6, 7],
          [8],
          [9],
          [10, 11, 12],
      ]
      ta = TokenAligner(src_tokens, tgt_tokens)
      for src_token_idx in range(len(src_tokens)):
          projected_tgt_tok_idx = ta.project_token_idxs(src_token_idx)
          assert (
              tgt_token_index[src_token_idx] == projected_tgt_tok_idx
          ).all()
  
imports: import numpy
  import pytest
  from jiant.utils.retokenize import TokenAligner, token_to_char
label_desc: Use image node_id 23 for calling a global function with example usage: test_sentencepiece_tok_idx_proj_2() without return types