code: def linspace_data_gen(
      start, stop, n, endpoint=False, dtype=numpy.float64
  ):
      cpu_time = numpy.linspace(start, stop, n, endpoint, dtype=dtype)
      cpu_sig = numpy.cos(-(cpu_time**2) / 6.0)
      gpu_sig = cupy.asarray(cpu_sig)
      return cpu_sig, gpu_sig
  
file_path: cupy/tests/cupyx_tests/signal_tests/filtering_tests/test_filtering.py
imports: import pytest
  import numpy
  import scipy
  import cupy
  import cupyx.signal
  import cupyx.scipy.signal
  from cupy import testing
label_desc: Use image node_id 1 for calling a global function with example usage: linspace_data_gen(start, stop, n, endpoint, dtype) and returns: cpu_sig,  gpu_sig