code: def test_inner_products():
      x = np.random.rand(10, 2)
  
      layer = layers.InnerProduct(trainable_kernel=True)
      output = layer(x)
      assert output.shape == (10, 10)
  
      layer = layers.InnerProduct(trainable_kernel=False)
      output = layer(x)
      assert output.shape == (10, 10)
  
      _test_get_config(layers.InnerProduct, trainable_kernel=True)
  
      layer = layers.MinkowskiProduct()
      output = layer(x)
      assert output.shape == (10, 10)
  
      _test_get_config(layers.MinkowskiProduct)
  
file_path: spektral/tests/test_layers/test_base.py
imports: import numpy
  import scipy.sparse
  import tensorflow
  from spektral import layers
  from spektral.utils.sparse import sp_matrix_to_sp_tensor
  from tests.test_layers.convolutional.core import _test_get_config
label_desc: Use image node_id 3 for calling a global function with example usage: test_inner_products() without return types