code: def __len__(self):
      return sum(
          [batch_inputs[0].shape[0] for batch_inputs, _ in self.data]
      )
  
imports: from typing import Sequence, List, Tuple, Any, Union, Iterable
  import numpy
  from loguru import logger
  from nebullvm.config import MIN_DIM_INPUT_DATA
  from nebullvm.optional_modules.tensorflow import tensorflow
  from nebullvm.optional_modules.torch import torch, Dataset, DataLoader
  from nebullvm.tools.onnx import convert_to_numpy
label_desc: Use image node_id 2 for calling the PytorchDataset obj's underlying member method code with example usage: obj.__len__() and returns: sum