code: def _make_complex(xp, sp, dtype):
      data = xp.array([[0, 1, 2], [3, 4, 5]], dtype)
      if dtype in [numpy.complex64, numpy.complex128]:
          data = data - 1j
      offsets = xp.array([0, -1], "i")
      # 0, 0, 0, 0
      # 3 - 1j, 1 - 1j, 0, 0
      # 0, 4 - 1j, 2 - 1j, 0
      return sp.dia_matrix((data, offsets), shape=(3, 4))
  
imports: import pickle
  import unittest
  import numpy
  import pytest
  import cupy
  from cupy import testing
  from cupy.cuda import driver
  from cupy.cuda import runtime
  from cupyx.scipy import sparse
label_desc: Use image node_id 2 for calling a global function with example usage: _make_complex(xp, sp, dtype) and returns: sp