code: def convert_ijv_to_sparse(ijv, validate=True):
      if validate:
          _validate_ijv(ijv)
  
      return np.core.records.fromarrays(
          (ijv[:, 0], ijv[:, 1], ijv[:, 2]),
          [
              (SPARSE_FIELD.y.value, ijv.dtype),
              (SPARSE_FIELD.x.value, ijv.dtype),
              (SPARSE_FIELD.label.value, ijv.dtype),
          ],
      )
  
imports: from enum import Enum
  import numpy
  from numpy.random.mtrand import RandomState
  import scipy.sparse
  import centrosome.index
label_desc: Use image node_id 17 for calling a global function with example usage: convert_ijv_to_sparse(ijv, validate) and returns: np