code: def test_set_classy_state_weight_inflation_inconsistent_kernel_size(
      self,
  ):
      # Get model state from a 2D ResNet model, inflate the 2D conv weights,
      # and use them to initialize 3D conv weights.
      (
          model_2d_config,
          model_3d_config,
      ) = self._get_model_config_weight_inflation()
      # Modify conv kernel size in the stem layer of 2D model to 5, which is
      # inconsistent with the kernel size 7 used in 3D model.
      model_2d_config["stem_spatial_kernel"] = 5
      model_2d = build_model(model_2d_config)
      model_2d_state = model_2d.get_classy_state()
      model_3d = build_model(model_3d_config)
      with self.assertRaises(AssertionError):
          model_3d.set_classy_state(model_2d_state)
  
file_path: ClassyVision/test/models_resnext3d_test.py
imports: import copy
  import unittest
  import torch
  from classy_vision.models import build_model, ClassyModel
  from test.generic.utils import compare_model_state
label_desc: Use image node_id 7 for calling the TestResNeXt3D obj's underlying member method code with example usage: obj.test_set_classy_state_weight_inflation_inconsistent_kernel_size() without return types