code: def test_init_parameters_specific(self):
      vocab_size = 1000
      max_seq_length = 50
  
      num_classes = 3
      out_channels = 200
      embed_dim = 150
      padding_idx = 1
      kernel_heights = [4, 5]
      fc_dropout = 0.1
      embedding_matrix = None
      freeze_embedding_layer = True
  
      pool_sizes = [(46, 1), (45, 1)]
  
      model = KimCNN(
          vocab_size,
          max_seq_length,
          num_classes=num_classes,
          out_channels=out_channels,
          embed_dim=embed_dim,
          padding_idx=padding_idx,
          kernel_heights=kernel_heights,
          dropout=fc_dropout,
          embedding_matrix=embedding_matrix,
          freeze_embedding_layer=freeze_embedding_layer,
      )
  
      # Parameters
      self.assertEqual(out_channels, model.out_channels)
      self.assertEqual(1, model.in_channels)
      self.assertEqual(2, model.num_kernels)
      self.assertEqual(pool_sizes, model.pool_sizes)
      self.assertEqual(max_seq_length, model.max_seq_length)
      self.assertEqual(num_classes, model.num_classes)
  
      # Modules
      self.assertFalse(model.embedding.weight.requires_grad)
  
      self.assertEqual(padding_idx, model.embedding.padding_idx)
      self.assertEqual(vocab_size, model.embedding.num_embeddings)
      self.assertEqual(embed_dim, model.embedding.embedding_dim)
  
      self.assertEqual(2, len(model.convs))
      for i, conv in enumerate(model.convs):
          self.assertEqual(1, conv.in_channels)
          self.assertEqual(out_channels, conv.out_channels)
          self.assertEqual(
              (kernel_heights[i], embed_dim), conv.kernel_size
          )
  
      self.assertEqual(len(pool_sizes), len(model.pools))
      for i, pool in enumerate(model.pools):
          self.assertEqual(pool_sizes[i], pool.kernel_size)
  
      self.assertEqual(fc_dropout, model.dropout.p)
      self.assertEqual(400, model.fc.in_features)
      self.assertEqual(num_classes, model.fc.out_features)
  
imports: import unittest
  import pytest
  from small_text.integrations.pytorch.exceptions import PytorchNotFoundError
label_desc: Use image node_id 2 for calling the KimCNNInitTest obj's underlying member method code with example usage: obj.test_init_parameters_specific() without return types