code: def test_summarywriter_audio_sampled_output(self):
      log_dir = tempfile.mkdtemp()
      summary_writer = SummaryWriter(log_dir=log_dir)
      expected_audio_samples = np.random.uniform(
          low=-1.0, high=1.0, size=(2, 48000, 2)
      )
      summary_writer.audio(
          tag="audio_test",
          audiodata=expected_audio_samples,
          step=1,
          max_outputs=1,
      )
  
      summary_value = self.parse_and_return_summary_value(path=log_dir)
      self.assertEqual(summary_value.tag, "audio_test")
  
      # Assert only the first audio clip is available.
      self.assertLen(summary_value.tensor.string_val, 1)
  
      # Assert values.
      actual_audio = tf.audio.decode_wav(
          summary_value.tensor.string_val[0]
      ).audio
  
      self.assertTrue(
          np.allclose(
              expected_audio_samples[0], actual_audio, atol=1e-04
          )
      )
  
imports: import itertools
  import pathlib
  import tempfile
  import numpy
  import tensorflow
  from absl.testing import absltest
  from tensorboard.backend.event_processing import directory_watcher, event_file_loader
  from tensorboard.util import tensor_util
  from flax.metrics.tensorboard import SummaryWriter, _flatten_dict
label_desc: Use image node_id 12 for calling the TensorboardTest obj's underlying member method code with example usage: obj.test_summarywriter_audio_sampled_output() without return types