code: def _test_torchscript_transformer():
      torch = __import__("torch")
      model = torch.nn.Transformer(nhead=16, num_encoder_layers=12)
      module = torch.jit.trace(
          model, (torch.rand(10, 32, 512), torch.rand(20, 32, 512))
      )
      # module = torch.jit.script(model)
      torch._C._jit_pass_inline(
          module.graph
      )  # pylint: disable=protected-access
      netron.serve("transformer", module)
  
file_path: netron/test/backend.py
imports: import os
  import sys
label_desc: Use image node_id 4 for calling a global function with example usage: _test_torchscript_transformer() without return types