code: def out_size(in_size, pool_size, strides, padding):
      if padding == "SAME":
          out_height = math.ceil(int(in_size[0]) / strides[0])
          out_width = math.ceil(int(in_size[1]) / strides[1])
      elif padding == "VALID":
          out_height = math.ceil(
              (int(in_size[0]) - pool_size[0] + 1) / strides[0]
          )
          out_width = math.ceil(
              (int(in_size[1]) - pool_size[1] + 1) / strides[1]
          )
      else:
          raise ValueError(
              "Don't know padding method '{}'".format(padding)
          )
      return [out_height, out_width]
  
file_path: tf-encrypted/tf_encrypted/tensor/shared.py
imports: import math
  from typing import Optional
  import tensorflow
label_desc: Use image node_id 7 for calling a global function with example usage: out_size(in_size, pool_size, strides, padding) and returns: list