class_docstr: Handles loading, partitioning, and preparing audio training data.
class_docstr_tok: ["Handles","loading",",","partitioning",",","and","preparing","audio","training","data","."]
docstr: Calculates the number of samples in the dataset partition.
  
  Args:
    mode: Which partition, must be 'training', 'validation', or 'testing'.
  
  Returns:
    Number of samples in the partition.
docstr_tok: ["Calculates","the","number","of","samples","in","the","dataset","partition",".","Args",":","mode",":","Which","partition",",","must","be","'training","'",",","'validation","'",",","or","'testing","'",".","Returns",":","Number","of","samples","in","the","partition","."]
code: def set_size(self, mode):
      """Calculates the number of samples in the dataset partition.
  
      Args:
        mode: Which partition, must be 'training', 'validation', or 'testing'.
  
      Returns:
        Number of samples in the partition.
      """
      return len(self.data_index[mode])
  
imports: import hashlib
  import math
  import os.path
  import random
  import re
  import sys
  import tarfile
  import numpy
  import urllib
  import tensorflow
  from tensorflow.python.ops import gen_audio_ops
  from tensorflow.python.ops import io_ops
  from tensorflow.python.platform import gfile
  from tensorflow.python.util import compat
label_desc: Use image node_id 6 for calling the AudioProcessor obj's underlying member method code with example usage: obj.set_size(mode) and returns: len