docstr: Tests that the /audio routes returns correct old-style data.
docstr_tok: ["Tests","that","the","\/audio","routes","returns","correct","old-style","data","."]
code: def testOldStyleAudioRoute(self):
      """Tests that the /audio routes returns correct old-style data."""
      response = self.server.get(
          "/data/plugin/audio/audio?run=foo&tag=baz/audio/0&sample=0"
      )
      self.assertEqual(200, response.status_code)
  
      # Verify that the correct entries are returned.
      entries = self._DeserializeResponse(response.get_data())
      self.assertEqual(2, len(entries))
  
      # Verify that the 1st entry is correct.
      entry = entries[0]
      self.assertEqual("audio/wav", entry["contentType"])
      self.assertEqual("", entry["label"])
      self.assertEqual(0, entry["step"])
      urllib.parse.parse_qs(entry["query"])  # should parse
  
      # Verify that the 2nd entry is correct.
      entry = entries[1]
      self.assertEqual("audio/wav", entry["contentType"])
      self.assertEqual("", entry["label"])
      self.assertEqual(1, entry["step"])
      urllib.parse.parse_qs(entry["query"])
  
imports: import collections.abc
  import json
  import os
  import shutil
  import tempfile
  import urllib.parse
  import numpy
  import tensorflow
  from werkzeug import test
  from werkzeug import wrappers
  from tensorboard.backend import application
  from tensorboard.backend.event_processing import plugin_event_multiplexer
  from tensorboard.backend.event_processing import data_provider
  from tensorboard.plugins import base_plugin
  from tensorboard.plugins.audio import audio_plugin
  from tensorboard.plugins.audio import summary
  from tensorboard.util import test_util
label_desc: Use image node_id 5 for calling the AudioPluginTest obj's underlying member method code with example usage: obj.testOldStyleAudioRoute() without return types