code: def eigValueSh(
      laplacian: torch.Tensor, cuda: bool, device: torch.device
  ) -> torch.Tensor:
      """
      Calculate only eigenvalues from the Laplacian matrix.
      """
      if cuda:
          if device is None:
              device = torch.cuda.current_device()
          laplacian = laplacian.float().to(device)
      else:
          laplacian = laplacian.float().to(torch.device("cpu"))
      lambdas = eigvalsh(laplacian)
      return lambdas
  
imports: from typing import Dict, List, Tuple
  import torch
  from torch.linalg import eigh, eigvalsh
label_desc: Use image node_id 18 for calling a global function with example usage: eigValueSh(laplacian, cuda, device) and returns: lambdas