code: def test_gen_model_archive(self, patches):
      ModelArchiver.generate_model_archive(self.config)
      patches.export_method.assert_called()
  
file_path: serve/model-archiver/model_archiver/tests/unit_tests/test_model_archiver.py
imports: from argparse import Namespace
  from collections import namedtuple
  import pytest
  from model_archiver import ModelArchiver, ModelArchiverConfig
  from model_archiver.manifest_components.manifest import RuntimeType
label_desc: Use image node_id 2 for calling the TestModelArchiver obj's underlying member method code with example usage: obj.test_gen_model_archive(patches) without return types