code: def test_barebones_raises():
      with pytest.raises(
          ValueError, match=r"enable_checkpointing=True\)` was passed"
      ):
          Trainer(barebones=True, enable_checkpointing=True)
      with pytest.raises(
          ValueError, match=r"logger=True\)` was passed"
      ):
          Trainer(barebones=True, logger=True)
      with pytest.raises(
          ValueError, match=r"enable_progress_bar=True\)` was passed"
      ):
          Trainer(barebones=True, enable_progress_bar=True)
      with pytest.raises(
          ValueError, match=r"enable_model_summary=True\)` was passed"
      ):
          Trainer(barebones=True, enable_model_summary=True)
      with pytest.raises(
          ValueError, match=r"log_every_n_steps=1\)` was passed"
      ):
          Trainer(barebones=True, log_every_n_steps=1)
      with pytest.raises(
          ValueError, match=r"num_sanity_val_steps=1\)` was passed"
      ):
          Trainer(barebones=True, num_sanity_val_steps=1)
      with pytest.raises(
          ValueError, match=r"fast_dev_run=1\)` was passed"
      ):
          Trainer(barebones=True, fast_dev_run=1)
      with pytest.raises(
          ValueError, match=r"detect_anomaly=True\)` was passed"
      ):
          Trainer(barebones=True, detect_anomaly=True)
      with pytest.raises(
          ValueError, match=r"profiler='simple'\)` was passed"
      ):
          Trainer(barebones=True, profiler="simple")
  
file_path: pytorch-lightning/tests/tests_pytorch/trainer/flags/test_barebones.py
imports: import logging
  import pytest
  from lightning.pytorch import Trainer
  from lightning.pytorch.callbacks import ModelSummary
  from lightning.pytorch.demos.boring_classes import BoringModel
  from lightning.pytorch.profilers import PassThroughProfiler
label_desc: Use image node_id 3 for calling a global function with example usage: test_barebones_raises() without return types