class_docstr: The LastFM Asia Network dataset introduced in the `"Characteristic
  Functions on Graphs: Birds of a Feather, from Statistical Descriptors to
  Parametric Models" <https://arxiv.org/abs/2005.07959>`_ paper.
  Nodes represent LastFM users from Asia and edges are friendships.
  It contains 7,624 nodes, 55,612 edges, 128 node features and 18 classes.
  
  Args:
      root (str): Root directory where the dataset should be saved.
      transform (callable, optional): A function/transform that takes in an
          :obj:`torch_geometric.data.Data` object and returns a transformed
          version. The data object will be transformed before every access.
          (default: :obj:`None`)
      pre_transform (callable, optional): A function/transform that takes in
          an :obj:`torch_geometric.data.Data` object and returns a
          transformed version. The data object will be transformed before
          being saved to disk. (default: :obj:`None`)
      force_reload (bool, optional): Whether to re-process the dataset.
          (default: :obj:`False`)
class_docstr_tok: ["The","LastFM","Asia","Network","dataset","introduced","in","the","`","``","Characteristic","Functions","on","Graphs",":","Birds","of","a","Feather",",","from","Statistical","Descriptors","to","Parametric","Models","''","<","https",":","\/\/arxiv.org\/abs\/2005.07959",">","`","_","paper",".","Nodes","represent","LastFM","users","from","Asia","and","edges","are","friendships",".","It","contains","7,624","nodes",",","55,612","edges",",","128","node","features","and","18","classes",".","Args",":","root","(","str",")",":","Root","directory","where","the","dataset","should","be","saved",".","transform","(","callable",",","optional",")",":","A","function\/transform","that","takes","in","an",":","obj",":","`","torch_geometric.data.Data","`","object","and","returns","a","transformed","version",".","The","data","object","will","be","transformed","before","every","access",".","(","default",":",":","obj",":","`","None","`",")","pre_transform","(","callable",",","optional",")",":","A","function\/transform","that","takes","in","an",":","obj",":","`","torch_geometric.data.Data","`","object","and","returns","a","transformed","version",".","The","data","object","will","be","transformed","before","being","saved","to","disk",".","(","default",":",":","obj",":","`","None","`",")","force_reload","(","bool",",","optional",")",":","Whether","to","re-process","the","dataset",".","(","default",":",":","obj",":","`","False","`",")"]
code: def process(self) -> None:
      data = np.load(self.raw_paths[0], "r", allow_pickle=True)
      x = torch.from_numpy(data["features"]).to(torch.float)
      y = torch.from_numpy(data["target"]).to(torch.long)
      edge_index = torch.from_numpy(data["edges"]).to(torch.long)
      edge_index = edge_index.t().contiguous()
  
      data = Data(x=x, y=y, edge_index=edge_index)
  
      if self.pre_transform is not None:
          data = self.pre_transform(data)
  
      self.save([data], self.processed_paths[0])
  
file_path: pytorch_geometric/torch_geometric/datasets/lastfm_asia.py
imports: from typing import Callable, Optional
  import numpy
  import torch
  from torch_geometric.data import Data, InMemoryDataset, download_url
label_desc: Use image node_id 5 for calling the LastFMAsia obj's underlying member method code with example usage: obj.process() without return types