code: def testListHparams(self):
      @registry.register_hparams
      def hp1():
          pass
  
      @registry.register_hparams("hp2_named")
      def hp2():
          pass
  
      @registry.register_ranged_hparams
      def rhp1(_):
          pass
  
      @registry.register_ranged_hparams("rhp2_named")
      def rhp2(_):
          pass
  
      self.assertSetEqual(
          set(["hp1", "hp2_named"]), set(registry.list_hparams())
      )
      self.assertSetEqual(
          set(["rhp1", "rhp2_named"]),
          set(registry.list_ranged_hparams()),
      )
  
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 7 for calling the HParamRegistryTest obj's underlying member method code with example usage: obj.testListHparams() without return types