code: def test_dtnn_gather():
      n_embedding = 30
      n_outputs = 100
      layer_sizes = [100]
      output_activation = True
      init = "glorot_uniform"
      activation = "tanh"
  
      layer = dc.models.layers.DTNNGather(
          n_embedding,
          n_outputs,
          layer_sizes,
          output_activation,
          init,
          activation,
      )
      config = layer.get_config()
      layer_copied = dc.models.layers.DTNNGather.from_config(config)
  
      assert layer_copied.n_embedding == layer.n_embedding
      assert layer_copied.n_outputs == layer.n_outputs
      assert layer_copied.layer_sizes == layer.layer_sizes
      assert layer_copied.output_activation == layer.output_activation
      assert layer_copied.init == layer.init
      assert layer_copied.activation == layer.activation
  
imports: import deepchem
  import pytest
label_desc: Use image node_id 24 for calling a global function with example usage: test_dtnn_gather() without return types