code: def test_groups_registry(
      name: str, recorder: tp.Dict[str, tp.List[optgroups.Optim]]
  ) -> None:
      maker = optgroups.registry[name]
      opts = list(maker())
      for opt in opts:
          if isinstance(opt, str):
              assert opt in optregistry, f"{opt} is not registered."
      recorder[name] = opts
  
imports: import inspect
  import itertools
  import os
  import platform
  import typing
  from pathlib import Path
  from unittest import SkipTest
  import pytest
  import numpy
  from nevergrad.optimization import registry
  import nevergrad.functions.base
  from nevergrad.functions.mlda import datasets
  from nevergrad.functions import rl
  from nevergrad.common import testing
  from nevergrad.common import tools
  from .xpbase import Experiment
  from .utils import Selector
  from .None import experiments
  from .None import optgroups
label_desc: Use image node_id 3 for calling a global function with example usage: test_groups_registry(name, recorder) without return types