code: def label_wav(
      wav_dir, labels, graph, input_name, output_name, how_many_labels
  ):
      """Loads the model and labels, and runs the inference to print predictions."""
      if not labels or not tf.io.gfile.exists(labels):
          raise ValueError(
              "Labels file does not exist at {0}".format(labels)
          )
  
      if not graph or not tf.io.gfile.exists(graph):
          raise ValueError(
              "Graph file does not exist at {0}".format(graph)
          )
  
      labels_list = load_labels(labels)
  
      # load graph, which is stored in the default session
      load_graph(graph)
  
      run_graph(
          wav_dir, labels_list, input_name, output_name, how_many_labels
      )
  
file_path: tensorflow-upstream/tensorflow/examples/speech_commands/label_wav_dir.py
imports: import argparse
  import glob
  import sys
  import tensorflow
label_desc: Use image node_id 4 for calling a global function with example usage: label_wav(wav_dir, labels, graph, input_name, output_name, how_many_labels) without return types