class_docstr: Tests layer creator.
      
docstr: Tests :func:`texar.tf.core.layers.get_layer`.
          
docstr_tok: ["Tests",":","func",":","`","texar.tf.core.layers.get_layer","`","."]
code: def test_get_layer(self):
      """Tests :func:`texar.tf.core.layers.get_layer`."""
      hparams = {"type": "Conv1D"}
      layer = layers.get_layer(hparams)
      self.assertTrue(isinstance(layer, tf.layers.Conv1D))
  
      hparams = {
          "type": "MergeLayer",
          "kwargs": {
              "layers": [{"type": "Conv1D"}, {"type": "Conv1D"}]
          },
      }
      layer = layers.get_layer(hparams)
      self.assertTrue(isinstance(layer, tx.core.MergeLayer))
  
      hparams = {"type": tf.layers.Conv1D}
      layer = layers.get_layer(hparams)
      self.assertTrue(isinstance(layer, tf.layers.Conv1D))
  
      hparams = {"type": tf.layers.Conv1D(filters=10, kernel_size=2)}
      layer = layers.get_layer(hparams)
      self.assertTrue(isinstance(layer, tf.layers.Conv1D))
  
imports: import numpy
  import tensorflow
  import tensorflow.contrib.rnn
  import texar.tf
  from texar.tf import context
  from texar.tf.hyperparams import HParams
  from texar.tf.core import layers
label_desc: Use image node_id 1 for calling the GetLayerTest obj's underlying member method code with example usage: obj.test_get_layer() without return types