docstr: Save then load a network with no metadata or other extra files.
docstr_tok: ["Save","then","load","a","network","with","no","metadata","or","other","extra","files","."]
code: def test_load_net_with_metadata(self):
      """Save then load a network with no metadata or other extra files."""
      m = torch.jit.script(TestModule())
  
      with tempfile.TemporaryDirectory() as tempdir:
          save_net_with_metadata(m, f"{tempdir}/test")
          _, meta, extra_files = load_net_with_metadata(
              f"{tempdir}/test.ts"
          )
  
      del meta[
          JITMetadataKeys.TIMESTAMP.value
      ]  # no way of knowing precisely what this value would be
  
      self.assertEqual(meta, get_config_values())
      self.assertEqual(extra_files, {})
  
file_path: MONAI/tests/test_torchscript_utils.py
imports: from __future__ import annotations
  import os
  import tempfile
  import unittest
  import torch
  from monai.config import get_config_values
  from monai.data import load_net_with_metadata, save_net_with_metadata
  from monai.utils import JITMetadataKeys
label_desc: Use image node_id 4 for calling the TestTorchscript obj's underlying member method code with example usage: obj.test_load_net_with_metadata() without return types