code: def dilated_convNd(input, kernel, pad, dilation=1, n=None):
      if n is None:
          n = input.ndim - 2
      dilation = as_tuple(dilation, n, int)
      dilated_kernel = dilate(kernel, (1, 1) + dilation)
      return convNd(input, dilated_kernel, pad, stride=1, n=n)
  
imports: import numpy
  import pytest
  import importlib
  import theano
  from theano import tensor
  import lasagne
  from lasagne.utils import floatX, as_tuple
label_desc: Use image node_id 4 for calling a global function with example usage: dilated_convNd(input, kernel, pad, dilation, n) and returns: convNd