code: def testRangeSignatureCheck(self):
      with self.assertRaisesRegexp(
          ValueError, "must take a single argument"
      ):
  
          @registry.register_ranged_hparams
          def rhp_bad():
              pass
  
      with self.assertRaisesRegexp(
          ValueError, "must take a single argument"
      ):
  
          @registry.register_ranged_hparams
          def rhp_bad2(a, b):  # pylint: disable=unused-argument
              pass
  
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 8 for calling the HParamRegistryTest obj's underlying member method code with example usage: obj.testRangeSignatureCheck() without return types