code: def test_registry(self) -> None:
      functions: decorators.Registry[
          tp.Callable[[], int]
      ] = decorators.Registry()
      other: decorators.Registry[
          tp.Callable[[], int]
      ] = decorators.Registry()
  
      @functions.register
      def dummy() -> int:
          return 12
  
      np.testing.assert_equal(dummy(), 12)
      np.testing.assert_array_equal(list(functions.keys()), ["dummy"])
      np.testing.assert_array_equal(list(other.keys()), [])
      functions.unregister("dummy")
      functions.unregister("other_dummy_that_does_not_exist")
      np.testing.assert_array_equal(list(functions.keys()), [])
  
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 1 for calling the DecoratorTests obj's underlying member method code with example usage: obj.test_registry() and returns: int