code: def test_embeddings_resize(self):
      regular_token_embedder = PretrainedTransformerEmbedder(
          "bert-base-cased"
      )
      assert (
          regular_token_embedder.transformer_model.embeddings.word_embeddings.num_embeddings
          == 28996
      )
      tokenizer_kwargs = {"additional_special_tokens": ["<NEW_TOKEN>"]}
      enhanced_token_embedder = PretrainedTransformerEmbedder(
          "bert-base-cased", tokenizer_kwargs=tokenizer_kwargs
      )
      assert (
          enhanced_token_embedder.transformer_model.embeddings.word_embeddings.num_embeddings
          == 28997
      )
  
imports: import math
  import pytest
  import torch
  from allennlp.common import Params, cached_transformers
  from allennlp.common.testing import AllenNlpTestCase, requires_gpu
  from allennlp.data import Vocabulary
  from allennlp.data.batch import Batch
  from allennlp.data.fields import TextField
  from allennlp.data.instance import Instance
  from allennlp.data.token_indexers import PretrainedTransformerIndexer
  from allennlp.data.tokenizers import PretrainedTransformerTokenizer
  from allennlp.modules.text_field_embedders import BasicTextFieldEmbedder
  from allennlp.modules.token_embedders import PretrainedTransformerEmbedder
label_desc: Use image node_id 11 for calling the TestPretrainedTransformerEmbedder obj's underlying member method code with example usage: obj.test_embeddings_resize() without return types