code: def testNoneHparams(self):
      @registry.register_hparams
      def hp():
          pass
  
      with self.assertRaisesRegexp(TypeError, "is None"):
          registry.hparams("hp")
  
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 5 for calling the HParamRegistryTest obj's underlying member method code with example usage: obj.testNoneHparams() without return types