class_docstr: Convert melody sequences (with metric timing) to integer indices.
class_docstr_tok: ["Convert","melody","sequences","(","with","metric","timing",")","to","integer","indices","."]
code: def _quantize_note_sequence(self, ns):
      return note_seq.quantize_note_sequence(
          ns, self._steps_per_quarter
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tempfile
  import note_seq
  from note_seq import performance_lib
  import pygtrie
  from tensor2tensor.data_generators import text_encoder
label_desc: Use image node_id 2 for calling the TextMelodyEncoder obj's underlying member method code with example usage: obj._quantize_note_sequence(ns) and returns: note_seq