code: def read_wav_file(filename):
      """Load a wav file and return sample_rate and numpy data of float64 type."""
      with tf.compat.v1.Session(graph=tf.Graph()) as sess:
          wav_filename_placeholder = tf.compat.v1.placeholder(
              tf.string, []
          )
          wav_loader = io_ops.read_file(wav_filename_placeholder)
          wav_decoder = tf.audio.decode_wav(
              wav_loader, desired_channels=1
          )
          res = sess.run(
              wav_decoder,
              feed_dict={wav_filename_placeholder: filename},
          )
      return res.sample_rate, res.audio.flatten()
  
file_path: tensorflow-upstream/tensorflow/examples/speech_commands/test_streaming_accuracy.py
imports: import argparse
  import sys
  import numpy
  import tensorflow
  from accuracy_utils import StreamingAccuracyStats
  from recognize_commands import RecognizeCommands
  from recognize_commands import RecognizeResult
  from tensorflow.python.ops import io_ops
label_desc: Use image node_id 3 for calling a global function with example usage: read_wav_file(filename) and returns: res,  res