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 tempfile
  import unittest
  from pathlib import Path
  from shutil import copyfile
  from transformers import M2M100Tokenizer, is_torch_available
  from transformers.testing_utils import get_tests_dir, nested_simplify, require_sentencepiece, require_tokenizers, require_torch, slow
  from transformers.utils import is_sentencepiece_available
  from ...test_tokenization_common import TokenizerTesterMixin
label_desc: Use image node_id 4 for calling the M2M100TokenizationTest obj's underlying member method code with example usage: obj.test_convert_token_and_id() without return types