code: def mask_like(like, mask_inx, mask_value=1.0):
      mask = np.zeros_like(like).reshape(-1)
      mask[mask_inx] = mask_value
      return mask.reshape(like.shape)
  
imports: import numpy
  from tinygrad.tensor import Tensor
label_desc: Use image node_id 1 for calling a global function with example usage: mask_like(like, mask_inx, mask_value) and returns: mask