code: def _compute_pad_size(
      input_dim_size, output_dim_size, kernel_dim_size, stride, dilation
  ):
      """
      Computes the size of the pad using the formula given in TF's conv_ops.cc.
      :return: the one-sided pad size
      """
  
      return (
          (output_dim_size - 1) * stride
          + (kernel_dim_size - 1) * dilation
          + 2
          - input_dim_size
      ) // 2
  
imports: from __future__ import absolute_import, print_function
  import math
  import numpy
  import tensorflow
  from niftynet.layer import layer_util
  from niftynet.layer.activation import ActiLayer
  from niftynet.layer.base_layer import TrainableLayer
  from niftynet.layer.bn import BNLayer, InstanceNormLayer
  from niftynet.layer.gn import GNLayer
  from niftynet.utilities.util_common import look_up_operations
label_desc: Use image node_id 3 for calling a global function with example usage: _compute_pad_size(input_dim_size, output_dim_size, kernel_dim_size, stride, dilation) and returns: unknown