code: def test_is_valid_extra_param(self):
      class SampleNetWithExtraParam(nn.Module):
          def __init__(self):
              super().__init__()
              self.fc = nn.Linear(8, 16)
              self.extra_param = nn.Parameter(torch.Tensor(16, 2))
  
          def forward(self, x):
              x = self.fc(x)
              x = x.matmul(self.extra_param)
              return x
  
      model = SampleNetWithExtraParam()
      # ModelValidator no longer checks for supported modules
      self.assertTrue(ModuleValidator.is_valid(model))
  
      model.extra_param.requires_grad = False
      self.assertTrue(ModuleValidator.is_valid(model))
  
imports: import unittest
  from collections import OrderedDict
  import torch
  import torch.nn
  from opacus.validators.errors import UnsupportedModuleError
  from opacus.validators.module_validator import ModuleValidator
  from torchvision.models import mobilenet_v3_small
label_desc: Use image node_id 7 for calling the ModuleValidator_test obj's underlying member method code with example usage: obj.test_is_valid_extra_param() and returns: x