code: def tensor_clamp(
      x: torch.Tensor, t_min: torch.Tensor, t_max: torch.Tensor
  ) -> torch.Tensor:
      """Clamping with tensor and broadcast support.
  
      :param x: the tensor to clamp.
      :param t_min: the minimum values.
      :param t_max: the maximum values.
      :return: the clamped tensor.
      """
      return torch.max(torch.min(x, t_max), t_min)
  
label_desc: Use image node_id 2 for calling a global function with example usage: tensor_clamp(x, t_min, t_max) and returns: torch