code: def __test_model_save_load_helper__(self, model):
      with util.TempDirectory() as f:
          model.save(f)
          m2 = tc.load_model(f)
          self.assertItemsEqual(model._list_fields(), m2._list_fields())
          for key in model._list_fields():
              if type(model._get(key)) is SGraph:
                  self.assertItemsEqual(
                      model._get(key).summary(), m2._get(key).summary()
                  )
                  self.assertItemsEqual(
                      model._get(key).get_fields(),
                      m2._get(key).get_fields(),
                  )
              elif type(model._get(key)) is SFrame:
                  sf1 = model._get(key)
                  sf2 = m2._get(key)
                  self.assertEqual(len(sf1), len(sf2))
                  self.assertItemsEqual(
                      sf1.column_names(), sf2.column_names()
                  )
                  df1 = sf1.to_dataframe()
                  print(df1)
                  df2 = sf2.to_dataframe()
                  print(df2)
                  df1 = df1.set_index(df1.columns[0])
                  df2 = df2.set_index(df2.columns[0])
                  assert_frame_equal(df1, df2)
              else:
                  if type(model._get(key)) is pd.DataFrame:
                      assert_frame_equal(model._get(key), m2._get(key))
                  else:
                      self.assertEqual(model._get(key), m2._get(key))
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from .None import util
  import unittest
  import pandas
  from pandas.util.testing import assert_frame_equal
  import turicreate
  from turicreate._connect.main import get_unity
  from turicreate.toolkits._main import ToolkitError
  from turicreate.data_structures.sgraph import SGraph
  from turicreate.data_structures.sframe import SFrame
  import sys
label_desc: Use image node_id 2 for calling the GraphAnalyticsTest obj's underlying member method code with example usage: obj.__test_model_save_load_helper__(model) without return types