docstr: Gets the size of this sequence.
  
  :return: The number of elements in this sequence.
docstr_tok: ["Gets","the","size","of","this","sequence",".",":","return",":","The","number","of","elements","in","this","sequence","."]
code: def __len__(self) -> int:
      """
      Gets the size of this sequence.
  
      :return: The number of elements in this sequence.
      """
      if self.slice_ids is not None:
          return len(self.slice_ids)
      else:
          return self._full_length()
  
imports: from abc import ABC, abstractmethod
  import bisect
  import copy
  from typing import Iterator, overload
  from typing_extensions import final
  import numpy
  from numpy import ndarray
  from torch import Tensor
  from torch.utils.data import Subset
  from .dataset_definitions import IDatasetWithTargets
  from typing import Sequence, List, Iterable, Union, Optional, TypeVar, Callable, Generic
label_desc: Use image node_id 6 for calling the SliceSequence obj's underlying member method code with example usage: obj.__len__() and returns: len, self