class_docstr: An abstract class for updating an engine state parameter values during training.
  
  Args:
      param_name: name of parameter to update.
      save_history: whether to log the parameter values to ``engine.state.param_history``, (default=False).
      create_new: whether to create ``param_name`` on ``engine.state`` taking into account whether ``param_name``
          attribute already exists or not. Overrides existing attribute by default, (default=False).
  
  Note:
      Parameter scheduler works independently of the internal state of the attached engine.
      More precisely, whatever the state of the engine (newly created or used by another scheduler) the scheduler
      sets defined absolute values.
  
  .. versionadded:: 0.4.7
class_docstr_tok: ["An","abstract","class","for","updating","an","engine","state","parameter","values","during","training",".","Args",":","param_name",":","name","of","parameter","to","update",".","save_history",":","whether","to","log","the","parameter","values","to","``","engine.state.param_history","``",",","(","default=False",")",".","create_new",":","whether","to","create","``","param_name","``","on","``","engine.state","``","taking","into","account","whether","``","param_name","``","attribute","already","exists","or","not",".","Overrides","existing","attribute","by","default",",","(","default=False",")",".","Note",":","Parameter","scheduler","works","independently","of","the","internal","state","of","the","attached","engine",".","More","precisely",",","whatever","the","state","of","the","engine","(","newly","created","or","used","by","another","scheduler",")","the","scheduler","sets","defined","absolute","values",".","..","versionadded",":",":","0.4.7"]
code: def __init__(
      self,
      param_name: str,
      save_history: bool = False,
      create_new: bool = False,
  ):
      super(StateParamScheduler, self).__init__(
          param_name, save_history
      )
      self.create_new = create_new
  
imports: import numbers
  import warnings
  from bisect import bisect_right
  from typing import Any, List, Sequence, Tuple, Union
  from ignite.engine import CallableEventWithFilter, Engine, Events, EventsList
  from ignite.handlers.param_scheduler import BaseParamScheduler
label_desc: Use image node_id 1 to create a new StateParamScheduler object from inherited base classes: BaseParamScheduler with example: obj = StateParamScheduler(param_name, save_history, create_new)