code: def testEventToNumSteps(self):
      self.assertEqual(
          0,
          self.enc.event_to_num_steps(
              PolyphonicEvent(event_type=PolyphonicEvent.START, pitch=0)
          ),
      )
      self.assertEqual(
          0,
          self.enc.event_to_num_steps(
              PolyphonicEvent(event_type=PolyphonicEvent.END, pitch=0)
          ),
      )
      self.assertEqual(
          1,
          self.enc.event_to_num_steps(
              PolyphonicEvent(
                  event_type=PolyphonicEvent.STEP_END, pitch=0
              )
          ),
      )
      self.assertEqual(
          0,
          self.enc.event_to_num_steps(
              PolyphonicEvent(
                  event_type=PolyphonicEvent.NEW_NOTE, pitch=60
              )
          ),
      )
      self.assertEqual(
          0,
          self.enc.event_to_num_steps(
              PolyphonicEvent(
                  event_type=PolyphonicEvent.CONTINUED_NOTE, pitch=72
              )
          ),
      )
  
file_path: magenta/magenta/models/polyphony_rnn/polyphony_encoder_decoder_test.py
imports: from magenta.models.polyphony_rnn import polyphony_encoder_decoder
  from magenta.models.polyphony_rnn.polyphony_lib import PolyphonicEvent
  import tensorflow.compat.v1
label_desc: Use image node_id 3 for calling the PolyphonyOneHotEncodingTest obj's underlying member method code with example usage: obj.testEventToNumSteps() without return types