code: def test_token_type_ids(self):
      tokenizer = self.tokenizer_class.from_pretrained(
          "Tanrei/GPTSAN-japanese"
      )
  
      # Testing tokenization
      prefix_text = "こんにちは、世界。"
      input_text = "こんばんは、㔺界。😀"
  
      len_prefix = len(tokenizer.encode(prefix_text)) - 2
      len_text = len(tokenizer.encode(input_text)) - 2
  
      expected_mask_1 = [1] + [0] * (len_prefix + len_text + 1)
      expected_mask_2 = [1] * (len_prefix + len_text + 1) + [0]
      expected_mask_3 = [1] + [1] * (len_prefix) + [0] * (len_text + 1)
  
      type_id_1 = tokenizer(prefix_text + input_text).token_type_ids
      type_id_2 = tokenizer(
          "", prefix_text=prefix_text + input_text
      ).token_type_ids
      type_id_3 = tokenizer(
          input_text, prefix_text=prefix_text
      ).token_type_ids
      self.assertListEqual(type_id_1, expected_mask_1)
      self.assertListEqual(type_id_2, expected_mask_2)
      self.assertListEqual(type_id_3, expected_mask_3)
  
imports: import json
  import os
  import unittest
  from transformers.models.gptsan_japanese.tokenization_gptsan_japanese import VOCAB_FILES_NAMES, GPTSanJapaneseTokenizer
  from transformers.testing_utils import require_jinja, require_tokenizers, slow
  from ...test_tokenization_common import TokenizerTesterMixin
label_desc: Use image node_id 11 for calling the GPTSanJapaneseTokenizationTest obj's underlying member method code with example usage: obj.test_token_type_ids() without return types