code: def test_resume(self):
      sess = tf.compat.v1.Session(graph=tf.Graph())
      with TFTrainer(self.snapshot_config, sess) as trainer:
          args = trainer.restore(self.temp_dir.name)
          assert np.equal(
              trainer._algo.policy.get_param_values(),
              self.policy_params,
          ).all(), "Policy parameters should persist"
          assert (
              args.n_epochs == 5
          ), "Snapshot should save training parameters"
          assert (
              args.start_epoch == 5
          ), "Last experiment should end at 5th iterations"
  
          batch_size = trainer._train_args.batch_size
  
          trainer.resume(
              n_epochs=10,
              plot=False,
              store_episodes=True,
              pause_for_plot=False,
          )
  
          assert trainer._train_args.n_epochs == 10
          assert trainer._train_args.batch_size == batch_size
          assert not trainer._train_args.plot
          assert trainer._train_args.store_episodes
          assert not trainer._train_args.pause_for_plot
  
file_path: garage/tests/garage/experiment/test_resume.py
imports: import tempfile
  import numpy
  import tensorflow
  from garage.experiment import SnapshotConfig
  from garage.trainer import TFTrainer
  from tests.fixtures import TfGraphTestCase
  from tests.fixtures.experiment import fixture_exp
label_desc: Use image node_id 3 for calling the TestResume obj's underlying member method code with example usage: obj.test_resume() without return types