code: def test_simulate_and_plot_values(scheduler_cls, scheduler_kwargs):
      import matplotlib
  
      matplotlib.use("Agg")
  
      event = Events.EPOCH_COMPLETED
      max_epochs = 2
      data = [0] * 10
  
      scheduler = scheduler_cls(**scheduler_kwargs)
      trainer = Engine(lambda engine, batch: None)
      scheduler.attach(trainer, event)
      trainer.run(data, max_epochs=max_epochs)
  
      # launch plot values
      scheduler_cls.plot_values(
          num_events=len(data) * max_epochs, **scheduler_kwargs
      )
  
imports: import re
  from pathlib import Path
  from unittest.mock import patch
  import pytest
  import torch
  import torch.nn
  from packaging.version import Version
  from ignite.engine import Engine, Events
  from ignite.handlers.state_param_scheduler import ExpStateScheduler, LambdaStateScheduler, MultiStepStateScheduler, PiecewiseLinearStateScheduler, StepStateScheduler
  from bisect import bisect_right
label_desc: Use image node_id 11 for calling a global function with example usage: test_simulate_and_plot_values(scheduler_cls, scheduler_kwargs) without return types