code: def _convert_fp_tensor(
      tensor: Tensor, dst_type: Union[str, torch.dtype]
  ) -> Tensor:
      return (
          tensor.to(dst_type)
          if torch.is_floating_point(tensor)
          else tensor
      )
  
file_path: pytorch-lightning/src/lightning/fabric/plugins/precision/utils.py
imports: from typing import Any, Mapping, Type, Union
  import torch
  from torch import Tensor
label_desc: Use image node_id 1 for calling a global function with example usage: _convert_fp_tensor(tensor, dst_type) and returns: unknown