code: def test_pulse_compression(xp, normalize, window, dtype):
      x = testing.shaped_random((8, 700), xp=xp, dtype=dtype)
      template = testing.shaped_random((100,), xp=xp, dtype=dtype)
  
      if xp is cupy:
          return signal.pulse_compression(
              x, template, normalize, window
          )
      else:
          assert xp is numpy
          return _numpy_pulse_compression(
              x, template, normalize, window
          )
  
file_path: cupy/tests/cupyx_tests/signal_tests/radartools_tests/test_radartools.py
imports: import numpy
  import pytest
  import cupy
  from cupy import testing
  from cupyx import signal
label_desc: Use image node_id 4 for calling a global function with example usage: test_pulse_compression(xp, normalize, window, dtype) and returns: signal, _numpy_pulse_compression