code: def get_graphs(data, anchor_sets):
      graphs = []
      anchor_eids = []
      dists_max_list = []
      edge_weights = []
      for anchor_set in tqdm(anchor_sets, leave=False):
          dists_max, dists_argmax = get_dist_max(
              anchor_set, data["dists"]
          )
          g, anchor_eid, edge_weight = get_a_graph(
              dists_max, dists_argmax
          )
          graphs.append(g)
          anchor_eids.append(anchor_eid)
          dists_max_list.append(dists_max)
          edge_weights.append(edge_weight)
  
      return graphs, anchor_eids, dists_max_list, edge_weights
  
imports: import multiprocessing
  import random
  from multiprocessing import get_context
  import networkx
  import numpy
  import torch
  from tqdm.auto import tqdm
label_desc: Use image node_id 15 for calling a global function with example usage: get_graphs(data, anchor_sets) and returns: graphs,  anchor_eids,  dists_max_list,  edge_weights