docstr: Save then load extra file data from a torchscript file.
docstr_tok: ["Save","then","load","extra","file","data","from","a","torchscript","file","."]
code: def test_save_load_more_extra_files(self):
      """Save then load extra file data from a torchscript file."""
      m = torch.jit.script(TestModule())
  
      test_metadata = {"foo": [1, 2], "bar": "string"}
  
      more_extra_files = {"test.txt": b"This is test data"}
  
      with tempfile.TemporaryDirectory() as tempdir:
          save_net_with_metadata(
              m,
              f"{tempdir}/test",
              meta_values=test_metadata,
              more_extra_files=more_extra_files,
          )
  
          self.assertTrue(os.path.isfile(f"{tempdir}/test.ts"))
  
          _, _, loaded_extra_files = load_net_with_metadata(
              f"{tempdir}/test.ts", more_extra_files=("test.txt",)
          )
  
          self.assertEqual(
              more_extra_files["test.txt"],
              loaded_extra_files["test.txt"],
          )
  
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 6 for calling the TestTorchscript obj's underlying member method code with example usage: obj.test_save_load_more_extra_files() without return types