code: def test_cqt_impulse(y_impulse, sr_impulse, hop_impulse):
      # Test to resolve issue #348
      # Updated in #417 to use integrated energy, rather than frame-wise max
  
      C = np.abs(
          librosa.cqt(
              y=y_impulse, sr=sr_impulse, hop_length=hop_impulse
          )
      )
  
      response = np.mean(C**2, axis=1)
  
      continuity = np.abs(np.diff(response))
  
      # Test that integrated energy is approximately constant
      assert np.max(continuity) < 5e-4, continuity
  
imports: from __future__ import division
  import warnings
  import os
  from typing import Optional
  import librosa
  import numpy
  import scipy.stats
  import pytest
  from test_core import srand
label_desc: Use image node_id 21 for calling a global function with example usage: test_cqt_impulse(y_impulse, sr_impulse, hop_impulse) without return types