code: def toset(x):
      # F.zerocopy_to_numpy may return a int
      return set(F.zerocopy_to_numpy(x).tolist())
  
file_path: dgl/tests/python/common/test_traversal.py
imports: import itertools
  import random
  import sys
  import time
  import unittest
  import backend
  import dgl
  import networkx
  import numpy
  import scipy.sparse
  from utils import parametrize_idtype
label_desc: Use image node_id 1 for calling a global function with example usage: toset(x) and returns: set