code: def _idx_to_mask(idx, l):
      mask = np.zeros(l)
      mask[idx] = 1
      return np.array(mask, dtype=bool)
  
imports: import os
  import os.path
  import networkx
  import numpy
  import requests
  import scipy.sparse
  from sklearn.model_selection import train_test_split
  from spektral.data import Dataset, Graph
  from spektral.datasets.utils import DATASET_FOLDER
  from spektral.utils.io import load_binary
label_desc: Use image node_id 2 for calling a global function with example usage: _idx_to_mask(idx, l) and returns: np