code: def convert_to_tensors(data: Any, device: _DEVICE) -> Any:
      # convert non-tensors
      for src_dtype, conversion_func in CONVERSION_DTYPES:
          data = apply_to_collection(
              data, src_dtype, conversion_func, device=device
          )
      return move_data_to_device(data, device)
  
file_path: pytorch-lightning/src/lightning/fabric/utilities/apply_func.py
imports: from abc import ABC
  from functools import partial
  from typing import Any, Callable, List, Tuple, Union
  import numpy
  import torch
  from lightning_utilities.core.apply_func import apply_to_collection
  from torch import Tensor
  from lightning.fabric.utilities.types import _DEVICE
label_desc: Use image node_id 3 for calling a global function with example usage: convert_to_tensors(data, device) and returns: move_data_to_device