class_docstr: Single Event containing a filter, specifying whether the event should
  be run at the current event (if the event type is correct)
  
  Args:
      value: The actual enum value. Only needed for internal use. Do not touch!
      event_filter: A function taking the engine and the current event value as input and returning a
          boolean to indicate whether this event should be executed. Defaults to None, which will result to a
          function that always returns `True`
      name: The enum-name of the current object. Only needed for internal use. Do not touch!
class_docstr_tok: ["Single","Event","containing","a","filter",",","specifying","whether","the","event","should","be","run","at","the","current","event","(","if","the","event","type","is","correct",")","Args",":","value",":","The","actual","enum","value",".","Only","needed","for","internal","use",".","Do","not","touch","!","event_filter",":","A","function","taking","the","engine","and","the","current","event","value","as","input","and","returning","a","boolean","to","indicate","whether","this","event","should","be","executed",".","Defaults","to","None",",","which","will","result","to","a","function","that","always","returns","`","True","`","name",":","The","enum-name","of","the","current","object",".","Only","needed","for","internal","use",".","Do","not","touch","!"]
code: def __init__(
      self,
      value: str,
      event_filter: Optional[Callable] = None,
      name: Optional[str] = None,
  ) -> None:
      self.filter = event_filter
  
      if not hasattr(self, "_value_"):
          self._value_ = value
  
      if not hasattr(self, "_name_") and name is not None:
          self._name_ = 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 1 to create a new CallableEventWithFilter object  with example: obj = CallableEventWithFilter(value, event_filter, name)