code: def testEncode(self):
      encoder = music_encoders.TextChordsEncoder(steps_per_quarter=1)
  
      ids = encoder.encode("C G Am F")
      expected_ids = [
          3,  # C major
          10,  # G major
          24,  # A minor
          8,  # F major
      ]
  
      self.assertEqual(expected_ids, ids)
  
imports: import tempfile
  from magenta.models.score2perf import music_encoders
  import note_seq
  from note_seq import testing_lib
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling the TextChordsEncoderTest obj's underlying member method code with example usage: obj.testEncode() without return types