code: def test_info_registry(self) -> None:
      functions: decorators.Registry[
          tp.Callable[[], int]
      ] = decorators.Registry()
  
      @functions.register_with_info(tag="info")
      def dummy_info() -> int:
          return 10
  
      np.testing.assert_equal(dummy_info(), 10)
      np.testing.assert_equal(
          functions.get_info("dummy_info"), {"tag": "info"}
      )
      np.testing.assert_raises(
          ValueError, functions.get_info, "no_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 2 for calling the DecoratorTests obj's underlying member method code with example usage: obj.test_info_registry() and returns: int