code: def test_optimizers_from_config(name):
      learn_rate = 0.123
      cfg = {"@optimizers": name, "learn_rate": learn_rate}
      optimizer = registry.resolve({"config": cfg})["config"]
      assert optimizer.learn_rate == learn_rate
  
file_path: thinc/thinc/tests/test_optimizers.py
imports: import numpy
  import pytest
  from thinc.api import Optimizer, registry
label_desc: Use image node_id 5 for calling a global function with example usage: test_optimizers_from_config(name) without return types