docstr: Ensure that malicious clients can't request a non-audio MIME type.
docstr_tok: ["Ensure","that","malicious","clients","ca","n't","request","a","non-audio","MIME","type","."]
code: def testRequestBadContentType(self):
      """Ensure that malicious clients can't request a non-audio MIME type."""
      response = self.server.get(
          "/data/plugin/audio/audio?run=bar&tag=quux/audio_summary&sample=0"
      )
      self.assertEqual(200, response.status_code)
      entries = self._DeserializeResponse(response.get_data())
      query_parts = urllib.parse.parse_qs(entries[0]["query"])
      self.assertIn("content_type", query_parts)
      query_parts["content-type"] = "application/javascript"
      malicious_query = urllib.parse.urlencode(query_parts)
      response = self.server.get(
          "/data/plugin/audio/individualAudio?" + malicious_query
      )
      self.assertEqual(400, response.status_code)
      self.assertIn(b"Illegal mime type", response.get_data())
  
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 9 for calling the AudioPluginTest obj's underlying member method code with example usage: obj.testRequestBadContentType() without return types