code: def convert_ijv_to_label_set(ijv, dense_shape=None, validate=True):
      if validate:
          _validate_ijv(ijv)
  
      sparse = convert_ijv_to_sparse(ijv, validate=False)
  
      if dense_shape is None:
          dense_shape = dense_shape_from_sparse(sparse)
  
      dense, indices = convert_sparse_to_dense(
          sparse, dense_shape=dense_shape, validate=False
      )
  
      label_set = convert_dense_to_label_set(
          dense, indices=indices, validate=False
      )
  
      return label_set
  
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 20 for calling a global function with example usage: convert_ijv_to_label_set(ijv, dense_shape, validate) and returns: label_set