code: def __len__(self):
      # return the number of walks
      return self.data.sentences_count
  
file_path: dgl/examples/pytorch/metapath2vec/reading_data.py
imports: import numpy
  import torch
  from download import AminerDataset
  from torch.utils.data import Dataset
label_desc: Use image node_id 2 for calling the Metapath2vecDataset obj's underlying member method code with example usage: obj.__len__() and returns: self