code: def to_adjacency_list(adj):
      """
      adj : Tensor [N,N]
      return Tensor [2,E]
      """
      adj = torch.stack(adj.nonzero(as_tuple=True)).long()  # edge list
      return adj
  
file_path: AutoGL/autogl/module/preprocessing/structure_engineering/_structure_engineer.py
imports: from ..None import _data_preprocessor
  import torch
  from ....utils import get_logger
label_desc: Use image node_id 5 for calling a global function with example usage: to_adjacency_list(adj) and returns: adj