code: def _gen_gaussians(xp, center_locs, sigmas, total_length):
      xdata = xp.arange(0, total_length).astype(float)
      out_data = xp.zeros(total_length, dtype=float)
      for ind, sigma in enumerate(sigmas):
          tmp = (xdata - center_locs[ind]) / sigma
          out_data += xp.exp(-(tmp**2))
      return out_data
  
imports: import pytest
  import cupy
  from cupy.cuda import driver
  from cupy.cuda import runtime
  from cupy import testing
  import cupyx.scipy.signal
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: _gen_gaussians(xp, center_locs, sigmas, total_length) and returns: out_data