class_docstr: Test functions defined in `functional` module
class_docstr_tok: ["Test","functions","defined","in","`","functional","`","module"]
code: def test_psd(self):
      batch_size = 2
      channel = 3
      sample_rate = 44100
      n_fft = 400
      n_fft_bin = 201
      waveform = common_utils.get_whitenoise(
          sample_rate=sample_rate,
          duration=0.05,
          n_channels=batch_size * channel,
      )
      specgram = common_utils.get_spectrogram(
          waveform, n_fft=n_fft, hop_length=100
      )
      specgram = specgram.view(
          batch_size, channel, n_fft_bin, specgram.size(-1)
      )
      self.assert_batch_consistency(F.psd, (specgram,))
  
imports: import itertools
  import math
  from functools import partial
  import torch
  import torchaudio.functional
  from parameterized import parameterized, parameterized_class
  from torchaudio_unittest import common_utils
label_desc: Use image node_id 16 for calling the TestFunctional obj's underlying member method code with example usage: obj.test_psd() without return types