code: def optimizers() -> typing.Iterable[optim.base.Optimizer]:
      for _, optimizer in inspect.getmembers(
          importlib.import_module("river.optim"),
          lambda x: inspect.isclass(x)
          and issubclass(x, optim.base.Optimizer)
          and x is not optim.base.Optimizer,
      ):
          for params in optimizer._unit_test_params():
              yield optimizer(**params)
  
file_path: river/river/optim/test_.py
imports: from __future__ import annotations
  import importlib
  import inspect
  import math
  import random
  import typing
  import numpy
  import pytest
  from river import optim, utils
label_desc: Use image node_id 3 for calling a global function with example usage: optimizers() without return types