class_docstr: Tests for NodeFileWriter.
code: def test_host_int32_inputs(self):
      with context.eager_mode():
          x = constant_op.constant(np.ones((2, 2)).astype(np.float32))
          paddings = constant_op.constant([[1, 2], [3, 4]])
          constant_values = constant_op.constant(0.0)
          gen_array_ops.pad_v2(x, paddings, constant_values)
          node_defs = self._get_new_node_defs()
          self.assertLen(node_defs, 1)
          (
              node_def,
          ) = node_defs  # pylint: disable=unbalanced-tuple-unpacking
          self.assertEqual(node_def.op, "PadV2")
          self.assertEqual(
              self._get_input_dtypes(node_def),
              [dtypes.float32, dtypes.int32, dtypes.float32],
          )
          self.assertEqual(
              self._get_input_shapes(node_def), [(2, 2), (2, 2), ()]
          )
          self.assertIsNone(self._get_input_tensor(node_def, 0))
          self.assertAllEqual(
              self._get_input_tensor(node_def, 1),
              np.array([[1, 2], [3, 4]]),
          )
          self.assertIsNone(self._get_input_tensor(node_def, 2))
  
imports: import io
  import os
  import struct
  import tempfile
  import numpy
  from tensorflow.core.framework import node_def_pb2
  from tensorflow.python.eager import context
  from tensorflow.python.framework import config
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.framework import test_util
  from tensorflow.python.framework.test_util import IsMklEnabled
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_array_ops
  from tensorflow.python.ops import gen_math_ops
  from tensorflow.python.ops import gen_nn_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 10 for calling the NodeFileWriterTest obj's underlying member method code with example usage: obj.test_host_int32_inputs() without return types