code: def audio(tag, tensor, sample_rate=44100):
      """
      Args:
        tensor: A 2-D float Tensor of shape `[frames, channels]` where `channels` is 1 or 2.
          The values should between [-1, 1]. We also accepts 1-D tensor.
      """
      import io
      import soundfile
  
      tensor = make_np(tensor)
      if abs(tensor).max() > 1:
          print("warning: audio amplitude out of range, auto clipped.")
          tensor = tensor.clip(-1, 1)
      if (
          tensor.ndim == 1
      ):  # old API, which expects single channel audio
          tensor = np.expand_dims(tensor, axis=1)
  
      assert tensor.ndim == 2, "Input tensor should be 2 dimensional."
      length_frames, num_channels = tensor.shape
      assert (
          num_channels == 1 or num_channels == 2
      ), "The second dimension should be 1 or 2."
  
      with io.BytesIO() as fio:
          soundfile.write(
              fio, tensor, samplerate=sample_rate, format="wav"
          )
          audio_string = fio.getvalue()
  
      audio = Summary.Audio(
          sample_rate=sample_rate,
          num_channels=num_channels,
          length_frames=length_frames,
          encoded_audio_string=audio_string,
          content_type="audio/wav",
      )
      return Summary(value=[Summary.Value(tag=tag, audio=audio)])
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import logging
  import numpy
  import os
  import re
  from .proto.summary_pb2 import Summary
  from .proto.summary_pb2 import HistogramProto
  from .proto.summary_pb2 import SummaryMetadata
  from .proto.tensor_pb2 import TensorProto
  from .proto.tensor_shape_pb2 import TensorShapeProto
  from .proto.plugin_pr_curve_pb2 import PrCurvePluginData
  from .proto.plugin_text_pb2 import TextPluginData
  from .proto.plugin_mesh_pb2 import MeshPluginData
  from .proto import layout_pb2
  from .x2num import make_np
  from .utils import _prepare_video, convert_to_HWC, convert_to_NTCHW
label_desc: Use image node_id 14 for calling a global function with example usage: audio(tag, tensor, sample_rate) and returns: Summary