docstr: Test for ValueError when providing bad max_depth
docstr_tok: ["Test","for","ValueError","when","providing","bad","max_depth"]
code: def test_invalid_max_depth(self) -> None:
      """Test for ValueError when providing bad max_depth"""
      model = torch.nn.Conv2d(3, 8, 3)
      summary = get_module_summary(model)
      with self.assertRaisesRegex(ValueError, "Got -2."):
          prune_module_summary(summary, max_depth=-2)
      with self.assertRaisesRegex(ValueError, "Got 0."):
          prune_module_summary(summary, max_depth=0)
  
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 4 for calling the ModuleSummaryTest obj's underlying member method code with example usage: obj.test_invalid_max_depth() without return types