code: def test_existing_trialexperiment(
      self, experiment, offline_experiment
  ):
      mocks = {"online": experiment, "offline": offline_experiment}
      for option in ["online", "offline"]:
          logger = self.loggers[option]
          mock = mocks[option]
  
          # This should create an experiment
          logger.log_trial_start(self.trials[0])
          mock.assert_called_once()
  
          # This should NOT create an experiment because it's the same trial
          logger.log_trial_start(self.trials[0])
          mock.assert_called_once()
  
          # This should create another new experiment
          logger.log_trial_start(self.trials[1])
  
          # Number of times the mock was called
          num_calls = len(mock.call_args_list)
  
          # Assert that Experiment/OfflineExperiment was called twice
          self.assertEqual(num_calls, 2)
  
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 2 for calling the LogTrialStartTest obj's underlying member method code with example usage: obj.test_existing_trialexperiment(experiment, offline_experiment) without return types