code: def patches(self, mocker):
      Patches = namedtuple(
          "Patches", ["arg_parse", "export_utils", "export_method"]
      )
      patches = Patches(
          mocker.patch("model_archiver.model_packaging.ArgParser"),
          mocker.patch(
              "model_archiver.model_packaging.ModelExportUtils"
          ),
          mocker.patch("model_archiver.model_packaging.package_model"),
      )
      mocker.patch("shutil.rmtree")
  
      return patches
  
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 1 for calling the TestModelPackaging obj's underlying member method code with example usage: obj.patches(mocker) and returns: patches