code: def test_alexnet_print(self) -> None:
      pretrained_model = models.alexnet(
          weights=AlexNet_Weights.IMAGENET1K_V1
      )
      ms1 = get_summary_and_prune(pretrained_model, max_depth=1)
      ms2 = get_summary_and_prune(pretrained_model, max_depth=2)
      ms3 = get_summary_and_prune(pretrained_model, max_depth=3)
      ms4 = get_module_summary(pretrained_model)
  
      summary_table1 = """
  Name | Type    | # Parameters | # Trainable Parameters | Size (bytes) | Contains Uninitialized Parameters?
  ----------------------------------------------------------------------------------------------------------
       | AlexNet | 61.1 M       | 61.1 M                 | 244 M        | No
  """
      summary_table2 = """
  Name       | Type              | # Parameters | # Trainable Parameters | Size (bytes) | Contains Uninitialized Parameters?
  --------------------------------------------------------------------------------------------------------------------------
             | AlexNet           | 61.1 M       | 61.1 M                 | 244 M        | No
  features   | Sequential        | 2.5 M        | 2.5 M                  | 9.9 M        | No
  avgpool    | AdaptiveAvgPool2d | 0            | 0                      | 0            | No
  classifier | Sequential        | 58.6 M       | 58.6 M                 | 234 M        | No
  """
  
      self._test_module_summary_text(summary_table1, str(ms1))
      self._test_module_summary_text(summary_table2, str(ms2))
      self.assertEqual(str(ms3), str(ms4))
  
imports: import unittest
  from typing import Any, Dict, Optional, Tuple
  import torch
  from torchtnt.utils.module_summary import _get_human_readable_count, get_module_summary, ModuleSummary, prune_module_summary
  from torchvision import models
  from torchvision.models.alexnet import AlexNet_Weights
  from torchvision.models.resnet import ResNet18_Weights
label_desc: Use image node_id 9 for calling the ModuleSummaryTest obj's underlying member method code with example usage: obj.test_alexnet_print() without return types