class_docstr: Tests allowable data formats when constructing
  the basic Element types.
code: def test_hline_dimension_values(self):
      hline = HLine(0)
      self.assertTrue(all(not np.isfinite(v) for v in hline.range(0)))
      self.assertEqual(hline.range(1), (0, 0))
  
      # Testing numpy inputs
      hline = HLine(np.array([0]))
      self.assertTrue(all(not np.isfinite(v) for v in hline.range(0)))
      self.assertEqual(hline.range(1), (0, 0))
  
      hline = HLine(np.array(0))
      self.assertTrue(all(not np.isfinite(v) for v in hline.range(0)))
      self.assertEqual(hline.range(1), (0, 0))
  
file_path: holoviews/holoviews/tests/element/test_annotations.py
imports: import numpy
  import param
  import pytest
  from packaging.version import Version
  from holoviews import Annotation, Arrow, HLine, Spline, Text, VLine
  from holoviews.element import Points
  from holoviews.element.comparison import ComparisonTestCase
label_desc: Use image node_id 3 for calling the AnnotationTests obj's underlying member method code with example usage: obj.test_hline_dimension_values() without return types