code: def thresholds_between_0_and_1(
      num_thresholds: int = 100, device: Optional[torch_device] = None
  ) -> Tensor:
      return linspace(
          start=0, end=1, 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 2 for calling a global function with example usage: thresholds_between_0_and_1(num_thresholds, device) and returns: linspace