code: def test_registry_error(self) -> None:
      functions: decorators.Registry[tp.Any] = decorators.Registry()
  
      @functions.register
      def dummy() -> int:
          return 12
  
      np.testing.assert_raises(RuntimeError, functions.register, dummy)
  
file_path: nevergrad/nevergrad/common/test_decorators.py
imports: import typing
  from unittest import TestCase
  import numpy
  from .None import decorators
label_desc: Use image node_id 3 for calling the DecoratorTests obj's underlying member method code with example usage: obj.test_registry_error() and returns: int