code: def test_weights_are_correct_sizes(self):
      # pylint: disable=protected-access
      bilinear = BilinearSimilarity(tensor_1_dim=5, tensor_2_dim=2)
      assert list(bilinear._weight_matrix.size()) == [5, 2]
      assert list(bilinear._bias.size()) == [1]
  
file_path: magnitude/pymagnitude/third_party/allennlp/tests/modules/similarity_functions/bilinear_test.py
imports: from __future__ import absolute_import
  import numpy
  from numpy.testing import assert_almost_equal
  import torch
  from torch.nn.parameter import Parameter
  from allennlp.common import Params
  from allennlp.modules.similarity_functions import BilinearSimilarity
  from allennlp.common.testing import AllenNlpTestCase
label_desc: Use image node_id 1 for calling the TestBilinearSimilarityFunction obj's underlying member method code with example usage: obj.test_weights_are_correct_sizes() without return types