code: def _fmax(r: Tensor, j: int, q: int) -> Tensor:
      return torch.max(
          torch.tensor(0.0, dtype=r.dtype, device=r.device), 1 - r
      ).pow(j + q)
  
file_path: gpytorch/gpytorch/kernels/piecewise_polynomial_kernel.py
imports: import math
  from typing import Optional
  import torch
  from torch import Tensor
  from .kernel import Kernel
label_desc: Use image node_id 1 for calling a global function with example usage: _fmax(r, j, q) and returns: torch