code: def test_torch_weighted_linear_combo():
      """Test invoking the Torch equivalent of WeightedLinearCombo."""
      input1 = np.random.rand(5, 10).astype(np.float32)
      input2 = np.random.rand(5, 10).astype(np.float32)
      layer = torch_layers.WeightedLinearCombo(len([input1, input2]))
      result = layer([input1, input2])
      assert len(layer.input_weights) == 2
      expected = (
          torch.Tensor(input1) * layer.input_weights[0]
          + torch.Tensor(input2) * layer.input_weights[1]
      )
      assert torch.allclose(result, expected)
  
imports: import deepchem
  import numpy
  import pytest
  import os
label_desc: Use image node_id 46 for calling a global function with example usage: test_torch_weighted_linear_combo() without return types