code: def spectral_phase(stft, power=2, log=False):
      """Returns the phase of a complex spectrogram.
  
      Arguments
      ---------
      stft : torch.Tensor
          A tensor, output from the stft function.
  
      Example
      -------
      >>> BS, nfft, T = 10, 20, 300
      >>> X_stft = torch.randn(BS, nfft//2 + 1, T, 2)
      >>> phase_mix = spectral_phase(X_stft)
      """
  
      phase = torch.atan2(stft[:, :, :, 1], stft[:, :, :, 0])
  
      return phase
  
imports: import torch
  from speechbrain.processing.features import spectral_magnitude
  import speechbrain.processing.features
label_desc: Use image node_id 1 for calling a global function with example usage: spectral_phase(stft, power, log) and returns: phase