code: def check_operator_power_spectrum(
      device, batch_size, input_shape, nfft, axis
  ):
      eii1 = RandomDataIterator(
          batch_size, shape=input_shape, dtype=np.float32
      )
      eii2 = RandomDataIterator(
          batch_size, shape=input_shape, dtype=np.float32
      )
      compare_pipelines(
          PowerSpectrumPipeline(
              device, batch_size, iter(eii1), axis=axis, nfft=nfft
          ),
          PowerSpectrumNumpyPipeline(
              device, batch_size, iter(eii2), axis=axis, nfft=nfft
          ),
          batch_size=batch_size,
          N_iterations=3,
          eps=1e-04,
      )
  
file_path: DALI/dali/test/python/operator_1/test_power_spectrum.py
imports: from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.ops
  import numpy
  from functools import partial
  from test_utils import compare_pipelines
  from test_utils import RandomDataIterator
label_desc: Use image node_id 2 for calling a global function with example usage: check_operator_power_spectrum(device, batch_size, input_shape, nfft, axis) without return types