class_docstr: Wraps a NumPy array for storage in an object-based checkpoint.
docstr: Callback to serialize the array.
docstr_tok: ["Callback","to","serialize","the","array","."]
code: def serialize(self):
      """Callback to serialize the array."""
      string_file = io.BytesIO()
      try:
          np.save(string_file, self.array, allow_pickle=False)
          serialized = string_file.getvalue()
      finally:
          string_file.close()
      return serialized
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import io
  import numpy
  import tensorflow
  from tf_agents.specs import array_spec
  from tensorflow.python.trackable import base
  from tensorflow.python.trackable import data_structures
label_desc: Use image node_id 2 for calling the _NumpyWrapper obj's underlying member method code with example usage: obj.serialize() and returns: serialized