code: def calc_output_shape(
      input, kernel, padding=0, stride=1, dilation=1, ceil_mode=False
  ):
      def dilated_kernel_size(kernel, dilation):
          return kernel + (kernel - 1) * (dilation - 1)
  
      rounding = math.ceil if ceil_mode else math.floor
      out = (
          input + 2 * padding - dilated_kernel_size(kernel, dilation)
      ) / stride + 1
      out = int(rounding(out))
      return out
  
imports: import math
  import numpy
  from bigdl.dllib.utils.log4Error import *
label_desc: Use image node_id 1 for calling a global function with example usage: calc_output_shape(input, kernel, padding, stride, dilation, ceil_mode) and returns: out, unknown