code: def test_indices_to_mask_rank1():
      indices = [1, 3, 4]
      mask = ops.indices_to_mask(indices, 6)
      np.testing.assert_equal(mask.numpy(), [0, 1, 0, 1, 1, 0])
  
imports: import numpy
  import scipy.sparse
  import tensorflow
  from spektral.data.utils import to_disjoint
  from spektral.layers import ops
  from spektral.utils import convolution
  from spektral.utils.sparse import sp_batch_to_sp_tensor, sp_matrix_to_sp_tensor
label_desc: Use image node_id 16 for calling a global function with example usage: test_indices_to_mask_rank1() without return types