docstr: Convenience function to calculate number examples from striding.
docstr_tok: ["Convenience","function","to","calculate","number","examples","from","striding","."]
code: def get_n_per_chunk(chunk_length, example_secs, hop_secs):
      """Convenience function to calculate number examples from striding."""
      n = (chunk_length - example_secs) / hop_secs
      # Deal with limited float precision that causes (.3 / .1) = 2.9999....
      return int(np.floor(np.round(n, decimals=3))) + 1
  
imports: import os
  import sys
  from absl import flags
  from absl.testing import absltest
  from absl.testing import parameterized
  from ddsp import spectral_ops
  from ddsp.training.data_preparation import prepare_tfrecord_lib
  import numpy
  import scipy.io.wavfile
  import tensorflow.compat.v2
label_desc: Use image node_id 6 for calling the PrepareTFRecordBeamTest obj's underlying member method code with example usage: obj.get_n_per_chunk(chunk_length, example_secs, hop_secs) and returns: unknown