code: def _get_record_metrics_test_calls(
      self,
      success_with_retries=0,
      success_no_retries=0,
      failed_with_retries=0,
      failed_no_retries=0,
  ):
      calls = [
          call(
              "workers.test_trainer.run_success_with_retries",
              success_with_retries,
          ),
          call(
              "workers.test_trainer.run_success_no_retries",
              success_no_retries,
          ),
          call(
              "workers.test_trainer.run_failed_with_retries",
              failed_with_retries,
          ),
          call(
              "workers.test_trainer.run_failed_no_retries",
              failed_no_retries,
          ),
      ]
      return calls
  
imports: import signal
  import unittest
  import uuid
  from typing import Any, Dict
  from unittest.mock import call, patch, MagicMock
  import torch.distributed.elastic.rendezvous.registry
  from torch.distributed.elastic.agent.server.api import RunResult, SimpleElasticAgent, WorkerGroup, WorkerSpec, WorkerState, _get_fq_hostname, _RoleInstanceInfo
  from torch.distributed.elastic.multiprocessing import SignalException
  from torch.distributed.elastic.multiprocessing.errors import ProcessFailure
  from torch.distributed.elastic.rendezvous import RendezvousHandler, RendezvousParameters
  from torch.distributed.elastic.utils.distributed import get_free_port
  from torch.testing._internal.common_utils import run_tests
label_desc: Use image node_id 11 for calling the SimpleElasticAgentTest obj's underlying member method code with example usage: obj._get_record_metrics_test_calls(success_with_retries, success_no_retries, failed_with_retries, failed_no_retries) and returns: calls