class_docstr: Shared methods between Point and Line
class_docstr_tok: ["Shared","methods","between","Point","and","Line"]
code: def validate(self, in_dshape):
      if not isreal(in_dshape.measure[str(self.x)]):
          raise ValueError("x must be real")
      elif not isreal(in_dshape.measure[str(self.y)]):
          raise ValueError("y must be real")
  
imports: from __future__ import annotations
  from packaging.version import Version
  import numpy
  from toolz import memoize
  from datashader.glyphs.glyph import Glyph
  from datashader.utils import isreal, ngjit
  from numba import cuda
label_desc: Use image node_id 4 for calling the _PointLike obj's underlying member method code with example usage: obj.validate(in_dshape) without return types