class_docstr: Random dataset for testing PL Module.
class_docstr_tok: ["Random","dataset","for","testing","PL","Module","."]
docstr: Get length of dataset.
docstr_tok: ["Get","length","of","dataset","."]
code: def __len__(self) -> int:
      """Get length of dataset."""
      return self.len
  
imports: import torch
  from lightning_utilities import module_available
  from torch.utils.data import Dataset
label_desc: Use image node_id 3 for calling the RandomDataset obj's underlying member method code with example usage: obj.__len__() and returns: self