docstr: Tests audio v2 invocation.
docstr_tok: ["Tests","audio","v2","invocation","."]
code: def test_audio_summary_v2(self):
      """Tests audio v2 invocation."""
      with test.mock.patch.object(
          summary_v2, "audio", autospec=True
      ) as mock_audio_v2:
          with summary_ops_v2.create_summary_file_writer(
              self.get_temp_dir()
          ).as_default(step=10):
              i = array_ops.ones((5, 3, 4))
              with ops.name_scope_v2("dolphin"):
                  tensor = summary_lib.audio(
                      "wave", i, 0.2, max_outputs=3
                  )
      # Returns empty string.
      self.assertEqual(tensor.numpy(), b"")
      self.assertEqual(tensor.dtype, dtypes.string)
      mock_audio_v2.assert_called_once_with(
          name="dolphin/wave",
          data=i,
          sample_rate=0.2,
          step=10,
          max_outputs=3,
          encoding=test.mock.ANY,
          description=test.mock.ANY,
      )
  
imports: from tensorboard.summary import v2
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import summary_ops_v2
  from tensorflow.python.platform import test
  from tensorflow.python.summary import summary
  from tensorflow.python.training import training_util
label_desc: Use image node_id 9 for calling the SummaryV2Test obj's underlying member method code with example usage: obj.test_audio_summary_v2() without return types