code: def test_line_awkward_point_on_upper_bound_maps_to_last_pixel():
      """Check that point deliberately chosen to be on the upper bound but
      with a similar-magnitudes subtraction error like that which could
      occur in extend line does indeed get mapped to last pixel.
      """
      num_y_pixels = 2
      ymax = 0.1
      bigy = 10e9
  
      sy = num_y_pixels / ymax
      y = bigy - (bigy - ymax)  # simulates clipped line
  
      # check that test is set up ok
      assert y != ymax
      np.testing.assert_almost_equal(y, ymax, decimal=6)
  
      _, pymax = map_onto_pixel_for_line(
          1.0, 0.0, sy, 0.0, 0.0, 1.0, 0.0, ymax, 1.0, y
      )
  
      assert pymax == num_y_pixels - 1
  
imports: from __future__ import annotations
  import pandas
  import numpy
  import pytest
  from datashader.datashape import dshape
  from datashader.glyphs import Point, LinesAxis1, Glyph
  from datashader.glyphs.area import _build_draw_trapezoid_y
  from datashader.glyphs.line import _build_map_onto_pixel_for_line, _build_draw_segment, _build_extend_line_axis0
  from datashader.glyphs.trimesh import _build_map_onto_pixel_for_triangle, _build_draw_triangle, _build_extend_triangles
  from datashader.utils import ngjit
label_desc: Use image node_id 30 for calling a global function with example usage: test_line_awkward_point_on_upper_bound_maps_to_last_pixel() without return types