code: def test_tokenizer_translation(self):
      inputs = self.tokenizer._build_translation_inputs(
          "A test", return_tensors="pt", src_lang="en", tgt_lang="ar"
      )
  
      self.assertEqual(
          nested_simplify(inputs),
          {
              # en_XX, A, test, EOS
              "input_ids": [[128022, 58, 4183, 2]],
              "attention_mask": [[1, 1, 1, 1]],
              # ar_AR
              "forced_bos_token_id": 128006,
          },
      )
  
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 10 for calling the M2M100TokenizerIntegrationTest obj's underlying member method code with example usage: obj.test_tokenizer_translation() without return types