code: def test_tokenization_for_chat(self):
      tok = self.tokenizer_3b
      test_chats = [
          [
              {
                  "role": "system",
                  "content": "You are a helpful chatbot.",
              },
              {"role": "user", "content": "Hello!"},
          ],
          [
              {
                  "role": "system",
                  "content": "You are a helpful chatbot.",
              },
              {"role": "user", "content": "Hello!"},
              {"role": "assistant", "content": "Nice to meet you."},
          ],
          [
              {"role": "assistant", "content": "Nice to meet you."},
              {"role": "user", "content": "Hello!"},
          ],
      ]
      tokenized_chats = [
          tok.apply_chat_template(test_chat) for test_chat in test_chats
      ]
      expected_tokens = [
          [
              553,
              366,
              265,
              4792,
              3879,
              73,
              311,
              21,
              228,
              228,
              6950,
              8,
              2,
          ],
          [
              553,
              366,
              265,
              4792,
              3879,
              73,
              311,
              21,
              228,
              228,
              6950,
              8,
              228,
              3490,
              287,
              2273,
              304,
              21,
              2,
          ],
          [3490, 287, 2273, 304, 21, 228, 228, 6950, 8, 2],
      ]
      for tokenized_chat, expected_tokens in zip(
          tokenized_chats, expected_tokens
      ):
          self.assertListEqual(tokenized_chat, expected_tokens)
  
file_path: transformers/tests/models/blenderbot/test_tokenization_blenderbot.py
imports: import unittest
  from transformers import BlenderbotTokenizer, BlenderbotTokenizerFast
  from transformers.testing_utils import require_jinja
  from transformers.utils import cached_property
label_desc: Use image node_id 7 for calling the Blenderbot3BTokenizerTests obj's underlying member method code with example usage: obj.test_tokenization_for_chat() without return types