code: def test_model_packager(self) -> None:
      with tempfile.NamedTemporaryFile() as file:
          output = file.name
          TestPredictFactoryPackager.save_predict_factory(
              predict_factory=TestPredictFactory,
              configs={"model_name": "sparsenn"},
              output=output,
              extra_files={"metadata": "test"},
          )
  
file_path: torchrec/torchrec/inference/tests/model_packager_tests.py
imports: import io
  import tempfile
  import unittest
  import torch.nn
  from torch.package import PackageExporter, PackageImporter
  from torchrec.inference.model_packager import PredictFactoryPackager
  from torchrec.inference.modules import PredictFactory
label_desc: Use image node_id 1 for calling the ModelPackagerTest obj's underlying member method code with example usage: obj.test_model_packager() without return types