code: def test_load_legacy_zip_checkpoint(self):
      with warnings.catch_warnings(record=True) as ws:
          warnings.simplefilter("always")
          hub_model = hub.load(
              "ailzhang/torchhub_example",
              "mnist_zip",
              pretrained=True,
              verbose=False,
          )
          self.assertEqual(
              sum_of_state_dict(hub_model.state_dict()),
              SUM_OF_HUB_EXAMPLE,
          )
          assert any(
              "will be deprecated in favor of default zipfile" in str(w)
              for w in ws
          )
  
imports: import unittest
  from unittest.mock import patch
  import os
  import tempfile
  import warnings
  import torch
  import torch.hub
  from torch.testing._internal.common_utils import retry, IS_SANDCASTLE, TestCase
label_desc: Use image node_id 12 for calling the TestHub obj's underlying member method code with example usage: obj.test_load_legacy_zip_checkpoint() without return types