class_docstr: Class for sampling graph.
docstr: Copy graph to the specified device.
  
  Parameters
  ----------
  device : torch.device
      The destination device.
  
  Returns
  -------
  SamplingGraph
      The graph on the specified device.
docstr_tok: ["Copy","graph","to","the","specified","device",".","Parameters","--","--","--","--","--","device",":","torch.device","The","destination","device",".","Returns","--","--","--","-","SamplingGraph","The","graph","on","the","specified","device","."]
code: def to(self, device: torch.device) -> "SamplingGraph":
      """Copy graph to the specified device.
  
      Parameters
      ----------
      device : torch.device
          The destination device.
  
      Returns
      -------
      SamplingGraph
          The graph on the specified device.
      """
      raise NotImplementedError
  
file_path: dgl/python/dgl/graphbolt/sampling_graph.py
imports: from typing import Dict, Union
  import torch
label_desc: Use image node_id 6 for calling the SamplingGraph obj's underlying member method code with example usage: obj.to(device) without return types