code: def testHParamSet(self):
      @registry.register_hparams
      def my_hparams_set():
          return 3
  
      @registry.register_ranged_hparams
      def my_hparams_range(_):
          pass
  
      self.assertEqual(
          registry.hparams("my_hparams_set"), my_hparams_set()
      )
      self.assertTrue(
          registry.ranged_hparams("my_hparams_range")
          is my_hparams_range
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from tensor2tensor.utils import registry
  from tensor2tensor.utils import t2t_model
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling the HParamRegistryTest obj's underlying member method code with example usage: obj.testHParamSet() and returns: int