code: def convert_labels_to_ijv(labels, validate=True):
      if validate:
          _validate_labels(labels)
  
      dense = convert_labels_to_dense(labels, validate=False)
      sparse = convert_dense_to_sparse(dense, validate=False)
      ijv = convert_sparse_to_ijv(sparse, validate=False)
  
      return ijv
  
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 19 for calling a global function with example usage: convert_labels_to_ijv(labels, validate) and returns: ijv