code: def test_invalid_precision_with_fsdp_precision():
      FSDPPrecision("16-mixed")
      FSDPPrecision("bf16-mixed")
  
      with pytest.raises(
          ValueError,
          match="is not supported in FSDP. `precision` must be one of",
      ):
          FSDPPrecision(precision="64-true")
  
file_path: pytorch-lightning/tests/tests_pytorch/plugins/precision/test_fsdp.py
imports: from unittest.mock import ANY, MagicMock, Mock
  import pytest
  import torch
  from lightning.fabric.plugins.precision.utils import _DtypeContextManager
  from lightning.pytorch.plugins.precision.fsdp import FSDPPrecision
  from tests_pytorch.helpers.runif import RunIf
label_desc: Use image node_id 8 for calling a global function with example usage: test_invalid_precision_with_fsdp_precision() without return types