code: def test_comet_name_default(comet_mock):
      """Test that CometLogger.name don't create an Experiment and returns a default value."""
      api_key = "key"
      logger = CometLogger(api_key=api_key)
      assert logger._experiment is None
      assert logger.name == "comet-default"
      assert logger._experiment is None
  
imports: import os
  from unittest import mock
  from unittest.mock import DEFAULT, Mock, patch
  import pytest
  from lightning.pytorch import Trainer
  from lightning.pytorch.demos.boring_classes import BoringModel
  from lightning.pytorch.loggers import CometLogger
  from lightning.pytorch.utilities.exceptions import MisconfigurationException
  from torch import tensor
label_desc: Use image node_id 7 for calling a global function with example usage: test_comet_name_default(comet_mock) without return types