code: def test_custom_scheduler_asserts():
      class LambdaState:
          def __init__(self, initial_value, gamma):
              self.initial_value = initial_value
              self.gamma = gamma
  
      with pytest.raises(
          ValueError, match=r"Expected lambda_obj to be callable."
      ):
          lambda_state_parameter_scheduler = LambdaStateScheduler(
              param_name="custom_scheduled_param",
              lambda_obj=LambdaState(initial_value=10, gamma=0.99),
              create_new=True,
          )
  
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 10 for calling a global function with example usage: test_custom_scheduler_asserts() without return types