code: def test_load_ts_module(
      self, bundle_files, bundle_name, version, repo, device, model_file
  ):
      with skip_if_downloading_fails():
          # load ts module
          with tempfile.TemporaryDirectory() as tempdir:
              # load ts module
              model_ts, metadata, extra_file_dict = load(
                  name=bundle_name,
                  version=version,
                  model_file=model_file,
                  load_ts_module=True,
                  bundle_dir=tempdir,
                  repo=repo,
                  progress=False,
                  device=device,
                  source="github",
                  config_files=("network.json",),
              )
  
              # prepare and test ts
              input_tensor = torch.load(
                  os.path.join(tempdir, bundle_name, bundle_files[1]),
                  map_location=device,
              )
              output = model_ts.forward(input_tensor)
              expected_output = torch.load(
                  os.path.join(tempdir, bundle_name, bundle_files[0]),
                  map_location=device,
              )
              assert_allclose(
                  output,
                  expected_output,
                  atol=1e-4,
                  rtol=1e-4,
                  type_test=False,
              )
              # test metadata
              self.assertTrue(metadata["pytorch_version"] == "1.7.1")
              # test extra_file_dict
              self.assertTrue("network.json" in extra_file_dict.keys())
  
imports: from __future__ import annotations
  import json
  import os
  import tempfile
  import unittest
  from unittest.case import skipUnless
  import numpy
  import torch
  from parameterized import parameterized
  import monai.networks.nets
  from monai.apps import check_hash
  from monai.bundle import ConfigParser, create_workflow, load
  from monai.utils import optional_import
  from tests.utils import SkipIfBeforePyTorchVersion, assert_allclose, command_line_tests, skip_if_downloading_fails, skip_if_no_cuda, skip_if_quick
label_desc: Use image node_id 3 for calling the TestLoad obj's underlying member method code with example usage: obj.test_load_ts_module(bundle_files, bundle_name, version, repo, device, model_file) without return types