code: def test_log_trial_end(self, experiment):
      logger = self.logger
      trials = self.trials
      method = experiment.return_value.end
  
      # Should not have ended yet
      method.assert_not_called()
  
      for trial in trials:
          logger.log_trial_start(trial)
          logger.log_trial_end(trial)
  
      self.assertEqual(len(method.call_args_list), len(trials))
  
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 4 for calling the LogTrialEndTests obj's underlying member method code with example usage: obj.test_log_trial_end(experiment) without return types