code: def test_eventslist__append_raises():
      ev_list = EventsList()
      with pytest.raises(
          TypeError,
          match=r"Argument event should be Events or CallableEventWithFilter",
      ):
          ev_list._append("abc")
  
imports: import functools
  import gc
  from unittest.mock import call, create_autospec, MagicMock
  import pytest
  from pytest import raises
  from ignite.engine import Engine, Events, State
  from ignite.engine.events import EventsList
label_desc: Use image node_id 8 for calling a global function with example usage: test_eventslist__append_raises() without return types