class_docstr: Here we also overwrite some of the tests of test_modeling_common.py, as Van does not use input_ids, inputs_embeds,
  attention_mask and seq_length.
class_docstr_tok: ["Here","we","also","overwrite","some","of","the","tests","of","test_modeling_common.py",",","as","Van","does","not","use","input_ids",",","inputs_embeds",",","attention_mask","and","seq_length","."]
code: def test_initialization(self):
      (
          config,
          inputs_dict,
      ) = self.model_tester.prepare_config_and_inputs_for_common()
      configs_no_init = _config_zero_init(config)
  
      for model_class in self.all_model_classes:
          model = model_class(config=configs_no_init)
          for name, module in model.named_modules():
              if isinstance(
                  module, (nn.BatchNorm2d, nn.GroupNorm, nn.LayerNorm)
              ):
                  self.assertTrue(
                      torch.all(module.weight == 1),
                      msg=f"Parameter {name} of model {model_class} seems not properly initialized",
                  )
                  self.assertTrue(
                      torch.all(module.bias == 0),
                      msg=f"Parameter {name} of model {model_class} seems not properly initialized",
                  )
              elif isinstance(module, nn.Conv2d):
                  fan_out = (
                      module.kernel_size[0]
                      * module.kernel_size[1]
                      * module.out_channels
                  )
                  fan_out //= module.groups
                  std = math.sqrt(2.0 / fan_out)
                  # divide by std -> mean = 0, std = 1
                  data = (
                      module.weight.data.cpu().flatten().numpy() / std
                  )
                  test = stats.anderson(data)
                  self.assertTrue(test.statistic > 0.05)
  
imports: import inspect
  import math
  import unittest
  from transformers import VanConfig
  from transformers.testing_utils import require_scipy, require_torch, require_vision, slow, torch_device
  from transformers.utils import cached_property, is_scipy_available, is_torch_available, is_vision_available
  from ...test_configuration_common import ConfigTester
  from ...test_modeling_common import ModelTesterMixin, _config_zero_init, floats_tensor, ids_tensor
label_desc: Use image node_id 9 for calling the VanModelTest obj's underlying member method code with example usage: obj.test_initialization() without return types