code: def NxToPyG(x):
      return torch_geometric.utils.from_networkx(x)
  
file_path: deepsnap/examples/bio_application/converter.py
imports: import pandas
  import networkx
  import torch
  import torch_geometric.data
  import torch_geometric.utils
label_desc: Use image node_id 8 for calling a global function with example usage: NxToPyG(x) and returns: torch_geometric