class_docstr: Helper object for computing loudness metrics.
class_docstr_tok: ["Helper","object","for","computing","loudness","metrics","."]
code: def __init__(self, sample_rate, frame_rate, name="loudness"):
      super().__init__(
          sample_rate=sample_rate, frame_rate=frame_rate, name=name
      )
      self._metrics = {
          "loudness_db": tf.keras.metrics.Mean("loudness_db"),
      }
  
imports: import dataclasses
  from absl import logging
  import ddsp
  import librosa
  import mir_eval
  import note_seq
  from note_seq import sequences_lib
  import numpy
  import tensorflow.compat.v2
label_desc: Use image node_id 1 to create a new LoudnessMetrics object from inherited base classes: BaseMetrics with example: obj = LoudnessMetrics(sample_rate, frame_rate, name)