code: def _linear_coeffs_antialias(
      ratio: float, scale: float
  ) -> np.ndarray:
      # Antialias is applied when downsampling
      scale = min(scale, 1.0)
  
      start = int(np.floor(-1 / scale) + 1)
      footprint = 2 - 2 * start
      args = (np.arange(start, start + footprint) - ratio) * scale
      coeffs = np.clip(1 - np.abs(args), 0, 1)
      return np.array(coeffs) / sum(coeffs)
  
file_path: onnx/onnx/reference/ops/op_resize.py
imports: from __future__ import annotations
  from typing import Any, Callable
  import numpy
  from onnx.reference.op_run import OpRun
label_desc: Use image node_id 6 for calling a global function with example usage: _linear_coeffs_antialias(ratio, scale) and returns: unknown