class_docstr: Serialize data to a buffer using the .npy format.
docstr: Saves a NumPy array in a buffer.
  
  Args:
      array (numpy.ndarray): The array to serialize.
  
  Returns:
      io.BytesIO: A buffer containing the serialized array.
docstr_tok: ["Saves","a","NumPy","array","in","a","buffer",".","Args",":","array","(","numpy.ndarray",")",":","The","array","to","serialize",".","Returns",":","io.BytesIO",":","A","buffer","containing","the","serialized","array","."]
code: def _serialize_array(self, array):
      """Saves a NumPy array in a buffer.
  
      Args:
          array (numpy.ndarray): The array to serialize.
  
      Returns:
          io.BytesIO: A buffer containing the serialized array.
      """
      buffer = io.BytesIO()
      np.save(buffer, array)
      return buffer.getvalue()
  
imports: from __future__ import absolute_import
  import abc
  from collections.abc import Iterable
  import csv
  import io
  import json
  import numpy
  from pandas import DataFrame
  from six import with_metaclass
  from sagemaker.utils import DeferredError
label_desc: Use image node_id 3 for calling the NumpySerializer obj's underlying member method code with example usage: obj._serialize_array(array) and returns: buffer