code: def linspace_data_gen():
      def _generate(
          start, stop, num_samps, endpoint=False, dtype=np.float64
      ):
          cpu_time = np.linspace(
              start, stop, num_samps, endpoint, dtype=dtype
          )
          cpu_sig = np.cos(-(cpu_time**2) / 6.0)
          gpu_sig = cp.asarray(cpu_sig)
  
          return cpu_sig, gpu_sig
  
      return _generate
  
file_path: cusignal/python/cusignal/test/conftest.py
imports: import cupy
  import numpy
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: linspace_data_gen() and returns: _generate, cpu_sig,  gpu_sig