code: def test_create_t5_from_pretrained(pretrained_model_name: str):
      model = T5.from_pretrained_module(pretrained_model_name)
      # Make sure weights are tied.
      assert id(model.token_embeddings.weight) == id(
          model.lm_head.weight
      )
  
file_path: allennlp/tests/modules/transformer/t5_test.py
imports: import pytest
  import torch
  from transformers.models import t5
  from allennlp.modules.transformer.t5 import T5
  from allennlp.nn.parallel import FairScaleFsdpAccelerator
  from allennlp.common.testing import run_distributed_test, requires_multi_gpu
label_desc: Use image node_id 1 for calling a global function with example usage: test_create_t5_from_pretrained(pretrained_model_name) without return types