class_docstr: Tests hyperparameter related operations.
      
docstr: Tests type-check functionality.
          
code: def test_typecheck(self):
      """Tests type-check functionality."""
  
      def _foo():
          pass
  
      def _bar():
          pass
  
      default_hparams = {"fn": _foo, "fn_2": _foo}
      hparams = {"fn": _foo, "fn_2": _bar}
      hparams_ = HParams(hparams, default_hparams)
      self.assertEqual(hparams_.fn, default_hparams["fn"])
  
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 2 for calling the HParamsTest obj's underlying member method code with example usage: obj.test_typecheck() without return types