code: def _calculate_output_image_size(
      input_image_size: list[int], stride: int | tuple[int]
  ):
      """
      Calculates the output image size when using _make_same_padder with a stride.
      Required for static padding.
  
      Args:
          input_image_size: input image/feature spatial size.
          stride: Conv2d operation"s stride.
  
      Returns:
          output_image_size: output image/feature spatial size.
      """
  
      # checks to extract integer stride in case tuple was received
      if isinstance(stride, tuple):
          all_strides_equal = all(stride[0] == s for s in stride)
          if not all_strides_equal:
              raise ValueError(
                  f"unequal strides are not possible, got {stride}"
              )
  
          stride = stride[0]
  
      # return output image size
      return [
          int(math.ceil(im_sz / stride)) for im_sz in input_image_size
      ]
  
imports: from __future__ import annotations
  import math
  import operator
  import re
  from functools import reduce
  from typing import NamedTuple
  import torch
  from torch import nn
  from torch.utils import model_zoo
  from monai.networks.blocks import BaseEncoder
  from monai.networks.layers.factories import Act, Conv, Pad, Pool
  from monai.networks.layers.utils import get_norm_layer
  from monai.utils.module import look_up_option
label_desc: Use image node_id 8 for calling a global function with example usage: _calculate_output_image_size(input_image_size, stride) and returns: unknown