code: def test_draw_line_diagonal(benchmark, draw_line):
      n = 10**4
      x0, y0 = (0, 0)
      x1, y1 = (n, n)
  
      agg = np.zeros((n + 1, n + 1), dtype="i4")
      buffer = np.empty(0)
      benchmark(
          draw_line,
          0,
          sx,
          tx,
          sy,
          ty,
          xmin,
          xmax,
          ymin,
          ymax,
          True,
          True,
          x0,
          x1,
          y0,
          y1,
          0.0,
          0.0,
          buffer,
          agg,
      )
  
file_path: datashader/datashader/tests/benchmarks/test_draw_line.py
imports: from __future__ import annotations
  import pytest
  import numpy
  from datashader.glyphs import Glyph
  from datashader.glyphs.line import _build_draw_segment, _build_map_onto_pixel_for_line
  from datashader.utils import ngjit
label_desc: Use image node_id 3 for calling a global function with example usage: test_draw_line_diagonal(benchmark, draw_line) without return types