code: def test_does_resume_a_preempted_experiment(self):
      beaker = Mock()
      experiment_id = "foo"
      start_autoresume(self.connection, experiment_id, 5)
      beaker.get_status.return_value = BeakerStatus.preempted
      beaker.resume.return_value = "foo2"
      resume(self.connection, beaker)
      beaker.get_status.assert_called()
      beaker.resume.assert_called()
      assert len(beaker.method_calls) == 2
  
file_path: allennlp/scripts/tests/ai2_internal/resume_daemon_test.py
imports: import pytest
  import sqlite3
  from unittest.mock import call, Mock
  from allennlp.common.testing import AllenNlpTestCase
  from scripts.ai2_internal.resume_daemon import BeakerStatus, create_table, handler, logger, resume, start_autoresume
label_desc: Use image node_id 7 for calling the ResumeDaemonTest obj's underlying member method code with example usage: obj.test_does_resume_a_preempted_experiment() without return types