code: def list_to_tensor(data):
      """Convert a list to a PyTorch tensor.
  
      Args:
          data (list): Data to convert to tensor
  
      Returns:
          torch.Tensor: A float tensor
      """
      return torch.as_tensor(
          data, dtype=torch.float32, device=global_device()
      )
  
imports: import copy
  import math
  import warnings
  import torch
  from torch import nn
  import torch.nn.functional
label_desc: Use image node_id 6 for calling a global function with example usage: list_to_tensor(data) and returns: torch