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 = 0
  
      self.assertEqual(
          self.get_tokenizer()._convert_token_to_id(token), token_id
      )
      self.assertEqual(
          self.get_tokenizer()._convert_id_to_token(token_id), token
      )
  
imports: import shutil
  import tempfile
  import unittest
  from transformers import SPIECE_UNDERLINE, BatchEncoding, MBart50Tokenizer, MBart50TokenizerFast, is_torch_available
  from transformers.testing_utils import get_tests_dir, nested_simplify, require_sentencepiece, require_tokenizers, require_torch, slow
  from ...test_tokenization_common import TokenizerTesterMixin
label_desc: Use image node_id 2 for calling the MBart50TokenizationTest obj's underlying member method code with example usage: obj.test_convert_token_and_id() without return types