class_docstr: Apply a constant amount of gain to match a specific loudness (in LUFS). This is an
  implementation of ITU-R BS.1770-4.
  
  For an explanation on LUFS, see https://en.wikipedia.org/wiki/LUFS
  
  See also the following web pages for more info on audio loudness normalization:
      https://github.com/csteinmetz1/pyloudnorm
      https://en.wikipedia.org/wiki/Audio_normalization
  
  Warning: This transform can return samples outside the [-1, 1] range, which may lead to
  clipping or wrap distortion, depending on what you do with the audio in a later stage.
  See also https://en.wikipedia.org/wiki/Clipping_(audio)#Digital_clipping
code: def __init__(
      self,
      min_lufs_in_db: float = None,
      max_lufs_in_db: float = None,
      min_lufs: float = None,
      max_lufs: float = None,
      p: float = 0.5,
  ):
      super().__init__(p)
  
      if min_lufs is not None and min_lufs_in_db is not None:
          raise ValueError(
              "Passing both min_lufs and min_lufs_in_db is not supported. Use only"
              " min_lufs."
          )
      elif min_lufs is not None:
          self.min_lufs = min_lufs
      elif min_lufs_in_db is not None:
          warnings.warn(
              "The min_lufs_in_db parameter is deprecated. Use min_lufs instead.",
              DeprecationWarning,
          )
          self.min_lufs = min_lufs_in_db
      else:
          self.min_lufs = -31.0  # the default
  
      if max_lufs is not None and max_lufs_in_db is not None:
          raise ValueError(
              "Passing both max_lufs and max_lufs_in_db is not supported. Use only"
              " max_lufs."
          )
      elif max_lufs is not None:
          self.max_lufs = max_lufs
      elif max_lufs_in_db is not None:
          warnings.warn(
              "The max_lufs_in_db parameter is deprecated. Use max_lufs instead.",
              DeprecationWarning,
          )
          self.max_lufs = max_lufs_in_db
      else:
          self.max_lufs = -13.0
  
file_path: audiomentations/audiomentations/augmentations/loudness_normalization.py
imports: import random
  import warnings
  import numpy
  import sys
  from numpy.typing import NDArray
  from audiomentations.core.transforms_interface import BaseWaveformTransform
label_desc: Use image node_id 1 to create a new LoudnessNormalization object from inherited base classes: BaseWaveformTransform with example: obj = LoudnessNormalization(min_lufs_in_db, max_lufs_in_db, min_lufs, max_lufs, p)