code: def test_get_available_flops_cuda_mapping_exists(_, device_name):
      """Tests `get_available_flops` against known device names."""
      with mock.patch(
          "lightning.fabric.utilities.throughput.torch.cuda.get_device_name",
          return_value=device_name,
      ):
          assert (
              get_available_flops(
                  device=torch.device("cuda"), dtype=torch.float32
              )
              is not None
          )
  
file_path: pytorch-lightning/tests/tests_fabric/utilities/test_throughput.py
imports: from unittest import mock
  from unittest.mock import Mock, call
  import pytest
  import torch
  from lightning.fabric import Fabric
  from lightning.fabric.plugins import Precision
  from lightning.fabric.utilities.throughput import Throughput, ThroughputMonitor, _MonotonicWindow, get_available_flops, measure_flops
  from tests_fabric.helpers.runif import RunIf
  from tests_fabric.test_fabric import BoringModel
label_desc: Use image node_id 3 for calling a global function with example usage: test_get_available_flops_cuda_mapping_exists(_, device_name) without return types