code: def thresholds_between_min_and_max(
      preds: Tensor,
      num_thresholds: int = 100,
      device: Optional[torch_device] = None,
  ) -> Tensor:
      return linspace(
          start=preds.min(),
          end=preds.max(),
          steps=num_thresholds,
          device=device,
      )
  
imports: from typing import Optional
  from torch import Tensor, linspace
  from torch import device
label_desc: Use image node_id 1 for calling a global function with example usage: thresholds_between_min_and_max(preds, num_thresholds, device) and returns: linspace