code: def test_equality(self):
      self.assertEqual(
          self.e1, NoteOnEvent(tick=100, pitch=50, velocity=60)
      )
      self.assertNotEqual(
          self.e1, NoteOnEvent(tick=101, pitch=50, velocity=60)
      )
      self.assertNotEqual(
          self.e1, NoteOnEvent(tick=100, pitch=51, velocity=60)
      )
      self.assertNotEqual(
          self.e1, NoteOnEvent(tick=100, pitch=50, velocity=61)
      )
      self.assertNotEqual(
          self.e1,
          NoteOnEvent(tick=100, pitch=50, velocity=60, channel=1),
      )
      self.assertNotEqual(self.e1, NoteOffEvent(tick=100, pitch=50))
  
imports: from __future__ import absolute_import, division, print_function
  import os
  import tempfile
  import unittest
  from os.path import join
  from madmom.utils.midi import *
  from .None import ANNOTATIONS_PATH
label_desc: Use image node_id 2 for calling the TestEventsClass obj's underlying member method code with example usage: obj.test_equality() without return types