code: def read_and_decode_audio(
      path, sampling_rate=None, output_sequence_length=None
  ):
      """Reads and decodes audio file."""
      audio = tf.io.read_file(path)
  
      if output_sequence_length is None:
          output_sequence_length = -1
  
      audio, default_audio_rate = tf.audio.decode_wav(
          contents=audio, desired_samples=output_sequence_length
      )
      if sampling_rate is not None:
          # default_audio_rate should have dtype=int64
          default_audio_rate = tf.cast(default_audio_rate, tf.int64)
          audio = tfio.audio.resample(
              input=audio,
              rate_in=default_audio_rate,
              rate_out=sampling_rate,
          )
      return audio
  
file_path: keras/keras/utils/audio_dataset_utils.py
imports: import numpy
  from keras.api_export import keras_export
  from keras.utils import dataset_utils
  from keras.utils.module_utils import tensorflow
  from keras.utils.module_utils import tensorflow_io
label_desc: Use image node_id 5 for calling a global function with example usage: read_and_decode_audio(path, sampling_rate, output_sequence_length) and returns: audio