code: def get_leftover_shape(arr: np.array, axes: Sequence[int]) -> Tuple:
      """
      Gets the shape of the arr dimensions not included in axes.
  
      Parameters
      ----------
      arr: np.ndarray
           The input to the expanded.
      axes: sequence
          A sequence of ints containing the axes.
  
      Returns
      -------
      leftover_shape: tuple
          The leftover shape.
      """
  
      # TODO: Adapt for batched processing.
      axes = np.sort(np.array(axes))
      asserts.assert_indexed_axes(arr, axes)
  
      leftover_shape = tuple(
          [arr.shape[i] for i in range(arr.ndim) if i not in axes]
      )
      return leftover_shape
  
imports: import copy
  import re
  from importlib import util
  from typing import Any, Dict, Optional, Sequence, Tuple, Union, List, TypeVar
  import numpy
  from skimage.segmentation import slic, felzenszwalb
  from quantus.helpers import asserts
  from quantus.helpers.model.model_interface import ModelInterface
label_desc: Use image node_id 19 for calling a global function with example usage: get_leftover_shape(arr, axes) and returns: leftover_shape