code: def test_repeat_throws_error(self, experiment):
      logger = self.logger
      trial = self.trials[0]
  
      logger.log_trial_start(trial)
      logger.log_trial_end(trial)
      with self.assertRaises(KeyError):
          logger.log_trial_end(trial)
  
imports: import unittest
  from unittest.mock import patch
  from ray.air.integrations.comet import CometLoggerCallback
  from collections import namedtuple
label_desc: Use image node_id 3 for calling the LogTrialEndTests obj's underlying member method code with example usage: obj.test_repeat_throws_error(experiment) without return types