code: def to(self, *args, **kwargs):
      adj_t = self.adj_t.to(*args, **kwargs)
      e_id = (
          self.e_id.to(*args, **kwargs)
          if self.e_id is not None
          else None
      )
      return Adj(adj_t, e_id, self.size)
  
file_path: pytorch_geometric/torch_geometric/loader/neighbor_sampler.py
imports: from typing import Callable, List, NamedTuple, Optional, Tuple, Union
  import torch
  from torch import Tensor
  from torch_geometric.typing import SparseTensor
label_desc: Use image node_id 1 for calling the Adj obj's underlying member method code with example usage: obj.to() and returns: Adj