class_docstr: Class for reading TFRecords and returning a dataset.
class_docstr_tok: ["Class","for","reading","TFRecords","and","returning","a","dataset","."]
docstr: Take into account center padding to get number of frames.
code: def get_feature_length(self, centered):
      """Take into account center padding to get number of frames."""
      # Number of frames is independent of frame size for "center/same" padding.
      hop_size = CREPE_SAMPLE_RATE / self.frame_rate
      padding = "center" if centered else "same"
      return get_framed_lengths(
          self._audio_16k_length, CREPE_FRAME_SIZE, hop_size, padding
      )[0]
  
imports: import os
  from absl import logging
  from ddsp.spectral_ops import CREPE_FRAME_SIZE
  from ddsp.spectral_ops import CREPE_SAMPLE_RATE
  from ddsp.spectral_ops import get_framed_lengths
  import gin
  import tensorflow.compat.v2
  import tensorflow_datasets
label_desc: Use image node_id 2 for calling the TFRecordProvider obj's underlying member method code with example usage: obj.get_feature_length(centered) and returns: get_framed_lengths