code: def test_create_comet_experiment():
      # Fake experiment object (traintool.connect_comet not called)
      experiment = _create_comet_experiment(save=True)
      experiment.log_metric("fake-metric", 1)
      assert isinstance(experiment, DummyExperiment)
  
      # Real experiment object
      connect_comet(
          "fake-api-key"
      )  # won't connect with with dry_run == True
      experiment = _create_comet_experiment(save=True)
      experiment.log_metric("fake-metric", 1)
      assert isinstance(experiment, comet_ml.Experiment)
  
file_path: traintool/tests/test_main.py
imports: import comet_ml
  import pytest
  from tensorboardX import SummaryWriter
  from conftest import create_dataset
  from traintool.main import connect_comet, train, load, _resolve_model, _write_info_file, _read_info_file, _create_comet_experiment, _create_tensorboard_writer
  from traintool.model_wrapper import ModelWrapper
  from traintool.utils import DummyExperiment
label_desc: Use image node_id 3 for calling a global function with example usage: test_create_comet_experiment() without return types