docstr: Make sure saving and loading retains everything.
docstr_tok: ["Make","sure","saving","and","loading","retains","everything","."]
code: def test_save_and_load(self):
      """
      Make sure saving and loading retains everything.
      """
      test_methods_list = [
          func
          for func in dir(self)
          if callable(getattr(self, func)) and func.startswith("test")
      ]
      test_methods_list.remove("test_save_and_load")
  
      old_model_probs = self.model.predict(
          self.data[:10], output_type="probability_vector"
      )
  
      with test_util.TempDirectory() as filename:
          self.model.save(filename)
          self.model = None
          self.model = tc.load_model(filename)
  
          new_model_probs = self.model.predict(
              self.data[:10], output_type="probability_vector"
          )
          for a, b in zip(old_model_probs, new_model_probs):
              np.testing.assert_array_almost_equal(a, b, decimal=6)
  
          print(
              "Repeating all test cases after model delete and reload"
          )
          for test_method in test_methods_list:
              try:
                  getattr(self, test_method)()
                  print("Save and Load:", test_method, "has passed")
              except unittest.SkipTest:
                  pass
              except Exception as e:
                  self.assertTrue(
                      False,
                      "After model save and load, method "
                      + test_method
                      + " has failed with error: "
                      + str(e),
                  )
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import unittest
  import turicreate
  import random
  import tempfile
  import math
  import numpy
  from numbers import Number
  from .None import util
  import pytest
  from turicreate.toolkits._internal_utils import _mac_ver
  from turicreate.toolkits._main import ToolkitError
  import uuid
label_desc: Use image node_id 19 for calling the ActivityClassifierTest obj's underlying member method code with example usage: obj.test_save_and_load() without return types