docstr: Test ``_convert_token_to_id`` and ``_convert_id_to_token``.
docstr_tok: ["Test","``","_convert_token_to_id","``","and","``","_convert_id_to_token","``","."]
code: def test_convert_token_and_id(self):
      """Test ``_convert_token_to_id`` and ``_convert_id_to_token``."""
      token = "<s>"
      token_id = 1
  
      self.assertEqual(
          self.get_tokenizer()._convert_token_to_id(token), token_id
      )
      self.assertEqual(
          self.get_tokenizer()._convert_id_to_token(token_id), token
      )
  
file_path: transformers/tests/models/bert_generation/test_tokenization_bert_generation.py
imports: import unittest
  from transformers import BertGenerationTokenizer
  from transformers.testing_utils import get_tests_dir, require_sentencepiece, require_torch, slow
  from transformers.utils import cached_property
  from ...test_tokenization_common import TokenizerTesterMixin
label_desc: Use image node_id 2 for calling the BertGenerationTokenizationTest obj's underlying member method code with example usage: obj.test_convert_token_and_id() without return types