class_docstr: Tests hyperparameter related operations.
      
docstr: The the special cases involving "type" and "kwargs"
  hyperparameters.
code: def test_type_kwargs(self):
      """The the special cases involving "type" and "kwargs"
      hyperparameters.
      """
      default_hparams = {
          "type": "type_name",
          "kwargs": {"arg1": "argv1"},
      }
  
      hparams = {"type": "type_name"}
      hparams_ = HParams(hparams, default_hparams)
      self.assertEqual(
          hparams_.kwargs.todict(), default_hparams["kwargs"]
      )
  
      hparams = {"type": "type_name", "kwargs": {"arg2": "argv2"}}
      hparams_ = HParams(hparams, default_hparams)
      full_kwargs = {}
      full_kwargs.update(default_hparams["kwargs"])
      full_kwargs.update(hparams["kwargs"])
      self.assertEqual(hparams_.kwargs.todict(), full_kwargs)
  
      hparams = {"kwargs": {"arg2": "argv2"}}
      hparams_ = HParams(hparams, default_hparams)
      self.assertEqual(hparams_.kwargs.todict(), full_kwargs)
  
      hparams = {"type": "type_name2"}
      hparams_ = HParams(hparams, default_hparams)
      self.assertEqual(hparams_.kwargs.todict(), {})
  
      hparams = {"type": "type_name2", "kwargs": {"arg3": "argv3"}}
      hparams_ = HParams(hparams, default_hparams)
      self.assertEqual(hparams_.kwargs.todict(), hparams["kwargs"])
  
file_path: texar/tests/hyperparams_test.py
imports: import copy
  import pickle
  import tempfile
  import tensorflow
  from texar.tf.hyperparams import HParams
label_desc: Use image node_id 3 for calling the HParamsTest obj's underlying member method code with example usage: obj.test_type_kwargs() without return types