code: def test_int_write_numpy_to_dense_tensor():
      array_data = [[1, 2, 3], [10, 20, 3]]
      array = np.array(array_data)
      with tempfile.TemporaryFile() as f:
          write_numpy_to_dense_tensor(f, array)
          f.seek(0)
          for record_data, expected in zip(
              read_recordio(f), array_data
          ):
              record = Record()
              record.ParseFromString(record_data)
              assert (
                  record.features["values"].int32_tensor.values
                  == expected
              )
  
imports: from __future__ import absolute_import
  import numpy
  import tempfile
  import pytest
  import itertools
  from scipy.sparse import coo_matrix
  from sagemaker.amazon.common import RecordDeserializer, write_numpy_to_dense_tensor, read_recordio, RecordSerializer, write_spmatrix_to_sparse_tensor
  from sagemaker.amazon.record_pb2 import Record
label_desc: Use image node_id 6 for calling a global function with example usage: test_int_write_numpy_to_dense_tensor() without return types