code: def _get_conv_out_size(dimensions, kernels, paddings, dilations):
      return tuple(
          int(floor(x + 2 * p - d * (k - 1) - 1) + 1) if x else 0
          for x, k, p, d in zip(
              dimensions, kernels, paddings, dilations
          )
      )
  
imports: from math import floor
  from ...base import numeric_types
  from .rnn_cell import HybridRecurrentCell
  from ..parameter import Parameter
  from ...None import np, npx
  from ...util import use_np
label_desc: Use image node_id 1 for calling a global function with example usage: _get_conv_out_size(dimensions, kernels, paddings, dilations) and returns: tuple