code: def dilate(input, factors):
      """Inserts `factors[i] - 1` zeros between input elements on axis i."""
      output = np.zeros(
          tuple((s - 1) * f + 1 for s, f in zip(input.shape, factors)),
          dtype=input.dtype,
      )
      output[[slice(None, None, factor) for factor in factors]] = input
      return output
  
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 2 for calling a global function with example usage: dilate(input, factors) and returns: output