code: def test_tokenization_base_hard_symbols(self):
      symbols = (
          'This is a very long text with a lot of weird characters, such as: . , ~ ? ( ) " [ ] ! : - . Also we will'
          " add words that should not exsist and be tokenized to unk, such as saoneuhaoesuth"
      )
      original_tokenizer_encodings = [2, 1018, 67, 11, 1988, 2617, 5631, 278, 11, 3407, 48, 71630, 28085, 4, 3234, 157, 13, 6, 5, 6, 4, 3526, 768, 15, 659, 57, 298, 3983, 864, 129, 21, 6, 5, 13675, 377, 652, 7580, 10341, 155, 2817, 422, 1666, 7, 1674, 53, 113, 202277, 17892, 33, 60, 87, 4, 3234, 157, 61, 2667, 52376, 19, 88, 23, 735]  # fmt: skip
  
      self.assertListEqual(
          original_tokenizer_encodings,
          self.big_tokenizer.encode(symbols),
      )
  
imports: import pickle
  import shutil
  import tempfile
  import unittest
  from transformers import SPIECE_UNDERLINE, XGLMTokenizer, XGLMTokenizerFast
  from transformers.testing_utils import get_tests_dir, require_sentencepiece, require_tokenizers, slow
  from transformers.utils import cached_property
  from ...test_tokenization_common import TokenizerTesterMixin
label_desc: Use image node_id 10 for calling the XGLMTokenizationTest obj's underlying member method code with example usage: obj.test_tokenization_base_hard_symbols() without return types