code: def get_binary_mask(total_size, indices):
      mask = torch.zeros(total_size)
      mask[indices] = 1
      return mask.byte()
  
imports: import sys
  import datetime
  import dgl
  import errno
  import numpy
  import os
  import pickle
  import random
  import torch
  from dgl.data.utils import download, get_download_dir, _get_dgl_url
  import os.path
  from pprint import pprint
  from scipy import sparse
  from scipy import io
label_desc: Use image node_id 7 for calling a global function with example usage: get_binary_mask(total_size, indices) and returns: mask