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