code: def test_densenet_shape(
      self, model, input_param, input_shape, expected_shape
  ):
      net = model(**input_param).to(device)
      with eval_mode(net):
          result = net.forward(torch.randn(input_shape).to(device))
          self.assertEqual(result.shape, expected_shape)
  
file_path: MONAI/tests/test_densenet.py
imports: from __future__ import annotations
  import unittest
  from typing import TYPE_CHECKING
  from unittest import skipUnless
  import torch
  from parameterized import parameterized
  from monai.networks import eval_mode
  from monai.networks.nets import DenseNet121, Densenet169, DenseNet264, densenet201
  from monai.utils import optional_import
  from tests.utils import skip_if_downloading_fails, skip_if_quick, test_script_save
label_desc: Use image node_id 1 for calling the TestDENSENET obj's underlying member method code with example usage: obj.test_densenet_shape(model, input_param, input_shape, expected_shape) without return types