class_docstr: An object that is used to pass internal and user-defined state between event handlers. By default, state
  contains the following attributes:
  
  .. code-block:: python
  
      state.iteration         # 1-based, the first iteration is 1
      state.epoch             # 1-based, the first epoch is 1
      state.seed              # seed to set at each epoch
      state.dataloader        # data passed to engine
      state.epoch_length      # optional length of an epoch
      state.max_epochs        # number of epochs to run
      state.max_iters         # number of iterations to run
      state.batch             # batch passed to `process_function`
      state.output            # output of `process_function` after a single iteration
      state.metrics           # dictionary with defined metrics if any
      state.times             # dictionary with total and per-epoch times fetched on
                              # keys: Events.EPOCH_COMPLETED.name and Events.COMPLETED.name
  
  Args:
      kwargs: keyword arguments to be defined as State attributes.
class_docstr_tok: ["An","object","that","is","used","to","pass","internal","and","user-defined","state","between","event","handlers",".","By","default",",","state","contains","the","following","attributes",":","..","code-block",":",":","python","state.iteration","#","1-based",",","the","first","iteration","is","1","state.epoch","#","1-based",",","the","first","epoch","is","1","state.seed","#","seed","to","set","at","each","epoch","state.dataloader","#","data","passed","to","engine","state.epoch_length","#","optional","length","of","an","epoch","state.max_epochs","#","number","of","epochs","to","run","state.max_iters","#","number","of","iterations","to","run","state.batch","#","batch","passed","to","`","process_function","`","state.output","#","output","of","`","process_function","`","after","a","single","iteration","state.metrics","#","dictionary","with","defined","metrics","if","any","state.times","#","dictionary","with","total","and","per-epoch","times","fetched","on","#","keys",":","Events.EPOCH_COMPLETED.name","and","Events.COMPLETED.name","Args",":","kwargs",":","keyword","arguments","to","be","defined","as","State","attributes","."]
docstr: Get the value of Event attribute with given `event_name`.
docstr_tok: ["Get","the","value","of","Event","attribute","with","given","`","event_name","`","."]
code: def get_event_attrib_value(
      self, event_name: Union[str, Events, CallableEventWithFilter]
  ) -> int:
      """Get the value of Event attribute with given `event_name`."""
      if event_name not in State.event_to_attr:
          raise RuntimeError(f"Unknown event name '{event_name}'")
      return getattr(self, State.event_to_attr[event_name])
  
imports: import numbers
  import warnings
  import weakref
  from collections.abc import Sequence
  from enum import Enum
  from types import DynamicClassAttribute
  from typing import Any, Callable, Dict, Iterable, Iterator, List, Optional, TYPE_CHECKING, Union
  from torch.utils.data import DataLoader
  from ignite.engine.utils import _check_signature
label_desc: Use image node_id 3 for calling the State obj's underlying member method code with example usage: obj.get_event_attrib_value(event_name) and returns: getattr