code: def test_optimizer_schedules_invalid(schedule_invalid):
      with pytest.raises(ValueError):
          Optimizer(learn_rate=schedule_invalid)
  
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 8 for calling a global function with example usage: test_optimizer_schedules_invalid(schedule_invalid) without return types