code: def calculate_output_image_size(input_image_size, stride):
      """Calculates the output image size when using Conv2dSamePadding with a stride.
         Necessary for static padding. Thanks to mannatsingh for pointing this out.
  
      Args:
          input_image_size (int, tuple or list): Size of input image.
          stride (int, tuple or list): Conv2d operation's stride.
  
      Returns:
          output_image_size: A list [H,W].
      """
      if input_image_size is None:
          return None
      image_height, image_width = get_width_and_height_from_size(
          input_image_size
      )
      stride = stride if isinstance(stride, int) else stride[0]
      image_height = int(math.ceil(image_height / stride))
      image_width = int(math.ceil(image_width / stride))
      return [image_height, image_width]
  
imports: import re
  import math
  import collections
  from functools import partial
  import torch
  from torch import nn
  from torch.nn import functional
  from torch.utils import model_zoo
label_desc: Use image node_id 5 for calling a global function with example usage: calculate_output_image_size(input_image_size, stride) and returns: list, None