code: def test_multilayer_perceptron(skip_connection, batch_norm, expected):
      """Test invoking MLP."""
      torch.manual_seed(0)
      input_ar = torch.tensor([[1.0, 2.0], [5.0, 6.0]])
      layer = torch_layers.MultilayerPerceptron(
          d_input=2,
          d_output=2,
          d_hidden=(2, 2),
          activation_fn="relu",
          dropout=0.0,
          batch_norm=batch_norm,
          skip_connection=skip_connection,
      )
      result = layer(input_ar)
      output_ar = torch.tensor(expected)
      assert torch.allclose(result, output_ar, atol=1e-4)
  
imports: import deepchem
  import numpy
  import pytest
  import os
label_desc: Use image node_id 31 for calling a global function with example usage: test_multilayer_perceptron(skip_connection, batch_norm, expected) without return types