code: def test_axis_zero_domain():
      # Regression test for a bug that caused an overflow error when the domain
      # min was same as max
      with TestingCanvas() as c:
          axis = visuals.Axis(
              pos=[[-1.0, 0], [1.0, 0]],
              domain=(0.5, 0.5),
              parent=c.scene,
          )
          c.draw_visual(axis)
  
file_path: vispy/vispy/visuals/tests/test_axis.py
imports: from numpy.testing import assert_allclose, assert_array_equal
  from vispy import scene
  from vispy.scene import visuals
  from vispy.testing import requires_application, TestingCanvas, run_tests_if_main
label_desc: Use image node_id 2 for calling a global function with example usage: test_axis_zero_domain() without return types