code: def test_switched_dropout():
      rate = 0.1
      layer = dc.models.layers.SwitchedDropout(rate=rate)
      config = layer.get_config()
      layer_copied = dc.models.layers.SwitchedDropout.from_config(
          config
      )
  
      assert layer_copied.rate == layer.rate
  
imports: import deepchem
  import pytest
label_desc: Use image node_id 8 for calling a global function with example usage: test_switched_dropout() without return types