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
      )
  
imports: import unittest
  from transformers import PegasusTokenizer, PegasusTokenizerFast
  from transformers.testing_utils import get_tests_dir, require_sentencepiece, require_tokenizers, require_torch, slow
  from transformers.utils import cached_property
  from ...test_tokenization_common import TokenizerTesterMixin
label_desc: Use image node_id 5 for calling the PegasusTokenizationTest obj's underlying member method code with example usage: obj.test_convert_token_and_id() without return types