code: def test_sorts_correctly(self):
      snapshotter = Snapshotter(self.temp_dir.name, "all", 2)
      snapshotter.save_itr_params(80, {"test_itr": 80})
      snapshotter.save_itr_params(120, {"test_itr": 120})
      last = snapshotter.load(self.temp_dir.name)
      assert last["test_itr"] == 120
  
file_path: garage/tests/garage/experiment/test_snapshotter.py
imports: from os import path
  import pickle
  import tempfile
  import pytest
  from garage.experiment import Snapshotter
label_desc: Use image node_id 7 for calling the TestSnapshotter obj's underlying member method code with example usage: obj.test_sorts_correctly() without return types