code: def _test_torchscript_resnet34():
      torch = __import__("torch")
      torchvision = __import__("torchvision")
      model = torchvision.models.resnet34()
      # model = torchvision.models.alexnet(weights=torchvision.models.AlexNet_Weights.DEFAULT)
      # model = torchvision.models.resnet34(weights=torchvision.models.ResNet34_Weights.DEFAULT)
      state_dict = torch.load(
          os.path.join(
              test_data_dir, "pytorch", "resnet34-333f7ec4.pth"
          )
      )
      model.load_state_dict(state_dict)
      trace = torch.jit.trace(
          model, torch.zeros([1, 3, 224, 224]), strict=True
      )
      torch._C._jit_pass_inline(
          trace.graph
      )  # pylint: disable=protected-access
      netron.serve("resnet34", trace)
  
file_path: netron/test/backend.py
imports: import os
  import sys
label_desc: Use image node_id 5 for calling a global function with example usage: _test_torchscript_resnet34() without return types