code: def test_skips_already_done(self):
      self.run_single_mode(
          TEST_MODE_1,
          target_local_step=TEST_NUM_STEPS,
          target_global_step=TEST_NUM_STEPS,
      )
  
      restarter = Restarter(
          TEST_MODE_1, self.out_dir, target_local_step=TEST_NUM_STEPS
      )
      # We should skip the training as those steps are already completed.
      self.assertTrue(restarter.should_skip)
  
file_path: tensor2tensor/tensor2tensor/rl/restarter_test.py
imports: import os
  from tensor2tensor.rl.restarter import Restarter
  import tensorflow.compat.v1
label_desc: Use image node_id 7 for calling the RestarterTest obj's underlying member method code with example usage: obj.test_skips_already_done() without return types