code: def test_invalid_snapshot_mode(self):
      with pytest.raises(ValueError):
          snapshotter = Snapshotter(
              snapshot_dir=self.temp_dir.name, snapshot_mode="invalid"
          )
          snapshotter.save_itr_params(2, {"testparam": "invalid"})
  
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 5 for calling the TestSnapshotter obj's underlying member method code with example usage: obj.test_invalid_snapshot_mode() without return types