code: def test_docstring_examples():
      # LambdaStateScheduler
  
      engine = Engine(lambda e, b: None)
  
      class LambdaState:
          def __init__(self, initial_value, gamma):
              self.initial_value = initial_value
              self.gamma = gamma
  
          def __call__(self, event_index):
              return self.initial_value * self.gamma ** (
                  event_index % 9
              )
  
      param_scheduler = LambdaStateScheduler(
          param_name="param",
          lambda_obj=LambdaState(10, 0.99),
          create_new=True,
      )
  
      param_scheduler.attach(engine, Events.EPOCH_COMPLETED)
  
      engine.run([0] * 8, max_epochs=2)
  
      # PiecewiseLinearStateScheduler
  
      engine = Engine(lambda e, b: None)
  
      param_scheduler = PiecewiseLinearStateScheduler(
          param_name="param",
          milestones_values=[
              (10, 0.5),
              (20, 0.45),
              (21, 0.3),
              (30, 0.1),
              (40, 0.1),
          ],
          create_new=True,
      )
  
      param_scheduler.attach(engine, Events.EPOCH_COMPLETED)
  
      engine.run([0] * 8, max_epochs=40)
  
      # ExpStateScheduler
  
      engine = Engine(lambda e, b: None)
  
      param_scheduler = ExpStateScheduler(
          param_name="param",
          initial_value=10,
          gamma=0.99,
          create_new=True,
      )
  
      param_scheduler.attach(engine, Events.EPOCH_COMPLETED)
  
      engine.run([0] * 8, max_epochs=2)
  
      # StepStateScheduler
  
      engine = Engine(lambda e, b: None)
  
      param_scheduler = StepStateScheduler(
          param_name="param",
          initial_value=10,
          gamma=0.99,
          step_size=5,
          create_new=True,
      )
  
      param_scheduler.attach(engine, Events.EPOCH_COMPLETED)
  
      engine.run([0] * 8, max_epochs=10)
  
      # MultiStepStateScheduler
  
      engine = Engine(lambda e, b: None)
  
      param_scheduler = MultiStepStateScheduler(
          param_name="param",
          initial_value=10,
          gamma=0.99,
          milestones=[3, 6],
          create_new=True,
      )
  
      param_scheduler.attach(engine, Events.EPOCH_COMPLETED)
  
      engine.run([0] * 8, max_epochs=10)
  
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 16 for calling a global function with example usage: test_docstring_examples() and returns: unknown