code: def test_gen_model_archive(self, patches):
      patches.arg_parse.export_model_args_parser.parse_args.return_value = (
          self.config
      )
      generate_model_archive()
      patches.export_method.assert_called()
  
file_path: serve/model-archiver/model_archiver/tests/unit_tests/test_model_packaging.py
imports: from collections import namedtuple
  import pytest
  from model_archiver import ModelArchiverConfig
  from model_archiver.manifest_components.manifest import RuntimeType
  from model_archiver.model_packaging import generate_model_archive, package_model
  from model_archiver.model_packaging_utils import ModelExportUtils
label_desc: Use image node_id 2 for calling the TestModelPackaging obj's underlying member method code with example usage: obj.test_gen_model_archive(patches) without return types