code: def test_custom_callable_events():
      class CustomEvents(Enum):
          TEST_EVENT = "test_event"
  
      with pytest.raises(TypeError, match=r"object is not callable"):
          CustomEvents.TEST_EVENT(every=10)
  
      class CustomEvents2(EventEnum):
          TEST_EVENT = "test_event"
  
      CustomEvents2.TEST_EVENT(every=10)
  
imports: from enum import Enum
  from unittest.mock import MagicMock
  import pytest
  import torch
  import ignite.distributed
  from ignite.engine import Engine, Events
  from ignite.engine.events import CallableEventWithFilter, EventEnum, EventsList
label_desc: Use image node_id 19 for calling a global function with example usage: test_custom_callable_events() without return types