code: def __len__(self) -> int:
      lengths = _get_iterables_lengths(self.iterables)
      if self.limits is not None:
          return max(min(length, limit) for length, limit in zip(lengths, self.limits))  # type: ignore[return-value]
      return max(lengths)
  
imports: import contextlib
  from collections.abc import Iterable
  from typing import Any, Callable, Dict, Iterator, List, Literal, Optional, Tuple, Type, Union
  from torch.utils.data.dataloader import _BaseDataLoaderIter, _MultiProcessingDataLoaderIter
  from typing_extensions import Self, TypedDict
  from lightning.fabric.utilities.data import sized_len
  from lightning.pytorch.utilities._pytree import _map_and_unflatten, _tree_flatten, tree_unflatten
label_desc: Use image node_id 2 for calling the _MaxSize obj's underlying member method code with example usage: obj.__len__() and returns: max, max