code: def test_barebones_disables_logging():
      pl_module = BoringModel()
      trainer = Trainer(barebones=True)
      pl_module._trainer = trainer
  
      with pytest.warns(match=r"barebones=True\)` is configured"):
          pl_module.log("foo", 1.0)
      with pytest.warns(match=r"barebones=True\)` is configured"):
          pl_module.log_dict({"foo": 1.0})
  
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 1 for calling a global function with example usage: test_barebones_disables_logging() without return types