code: def get_absolute_split_sizes(
      n_total: int,
      ratios: Sequence[float],
  ) -> Tuple[int, ...]:
      """
      Compute absolute sizes of splits from given relative sizes.
  
      .. note ::
          This method compensates for rounding errors, and ensures that the absolute sizes sum up to the total number.
  
      :param n_total:
          The total number.
      :param ratios:
          The relative ratios (should sum to 1).
  
      :return:
          The absolute sizes.
      """
      # due to rounding errors we might lose a few points, thus we use cumulative ratio
      cum_ratio = numpy.cumsum(ratios)
      cum_ratio[-1] = 1.0
      cum_ratio = numpy.r_[numpy.zeros(1), cum_ratio]
      split_points = (cum_ratio * n_total).astype(numpy.int64)
      sizes = numpy.diff(split_points)
      return tuple(sizes)
  
imports: import logging
  import typing
  from abc import abstractmethod
  from typing import Collection, Optional, Sequence, Set, Tuple, Type, Union
  import numpy
  import pandas
  import torch
  from class_resolver.api import ClassResolver, HintOrType
  from ..constants import COLUMN_LABELS
  from ..typing import LABEL_HEAD, LABEL_RELATION, LABEL_TAIL, MappedTriples, Target, TorchRandomHint
  from ..utils import ensure_torch_random_state
label_desc: Use image node_id 6 for calling a global function with example usage: get_absolute_split_sizes(n_total, ratios) and returns: tuple