code: def test_serializer_accepts_one_dimensional_array():
      s = RecordSerializer()
      array_data = [1.0, 2.0, 3.0]
      buf = s.serialize(np.array(array_data))
      record_data = next(read_recordio(buf))
      record = Record()
      record.ParseFromString(record_data)
      assert (
          record.features["values"].float64_tensor.values == array_data
      )
  
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 2 for calling a global function with example usage: test_serializer_accepts_one_dimensional_array() without return types