code: def xs_iter(dims):
      return itertools.product(*[range(d) for d in dims])
  
imports: import itertools
  import unittest
  import numpy
  import six
  import chainer
  from chainer import backend
  from chainer import functions
  from chainer import testing
  from chainer.utils import conv
  from chainer.utils import type_check
label_desc: Use image node_id 1 for calling a global function with example usage: xs_iter(dims) and returns: itertools