code: def testIotaInitializer(self):
      self.assertAllClose([0.0, 1.0, 2.0, 3.0], _IotaInitializer([4]))
      self.assertAllClose(
          [[0.0, 1.0], [0.0, 10.0], [0.0, 100.0], [0.0, 1000.0]],
          _IotaInitializer([4, 2]),
      )
      with self.cached_session():
          vs = partitioned_variables.create_partitioned_variables(
              [13, 5], [3, 1], _IotaInitializer
          )
          self.evaluate(variables.global_variables_initializer())
          slice0 = _IotaInitializer([5, 5])
          slice1 = _IotaInitializer([4, 5])
          slice2 = _IotaInitializer([4, 5])
          val = array_ops.concat(vs, 0)
          self.assertAllClose(slice0 + slice1 + slice2, val)
          self._TestSaveSpec(
              vs, ["13 5 0,5:0,5", "13 5 5,4:0,5", "13 5 9,4:0,5"]
          )
  
imports: import os
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import cond
  from tensorflow.python.ops import init_ops
  from tensorflow.python.ops import partitioned_variables
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variable_v1
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.training import saver
label_desc: Use image node_id 11 for calling the PartitionedVariablesTestCase obj's underlying member method code with example usage: obj.testIotaInitializer() without return types