code: def test_bitsandbytes_precision_plugin(monkeypatch):
      monkeypatch.setattr(
          lightning.fabric.plugins.precision.bitsandbytes,
          "_BITSANDBYTES_AVAILABLE",
          True,
      )
      bitsandbytes_mock = Mock()
      monkeypatch.setitem(
          sys.modules, "bitsandbytes", bitsandbytes_mock
      )
  
      from lightning.pytorch.plugins.precision.bitsandbytes import (
          BitsandbytesPrecisionPlugin,
      )
  
      with pytest.deprecated_call(
          match=r"The `BitsandbytesPrecisionPlugin` is deprecated"
      ):
          BitsandbytesPrecisionPlugin("nf4")
  
imports: import sys
  from unittest.mock import Mock
  import lightning.fabric
  import pytest
  import torch.nn
  from lightning.pytorch import Trainer
  from lightning.pytorch.demos.boring_classes import BoringModel
  from lightning.pytorch.plugins.precision.double import LightningDoublePrecisionModule
  from lightning.pytorch.strategies import DDPStrategy, FSDPStrategy
  from tests_pytorch.helpers.runif import RunIf
label_desc: Use image node_id 7 for calling a global function with example usage: test_bitsandbytes_precision_plugin(monkeypatch) without return types