code: def test_set_gather():
      M = 10
      batch_size = 16
      n_hidden = 100
      init = "orthogonal"
  
      layer = dc.models.layers.SetGather(M, batch_size, n_hidden, init)
      config = layer.get_config()
      layer_copied = dc.models.layers.SetGather.from_config(config)
  
      assert layer_copied.M == layer.M
      assert layer_copied.batch_size == layer.batch_size
      assert layer_copied.n_hidden == layer.n_hidden
      assert layer_copied.init == layer.init
  
imports: import deepchem
  import pytest
label_desc: Use image node_id 30 for calling a global function with example usage: test_set_gather() without return types