class_docstr: Base class for glyphs.
class_docstr_tok: ["Base","class","for","glyphs","."]
code: def maybe_expand_bounds(bounds):
      minval, maxval = bounds
      if not (np.isfinite(minval) and np.isfinite(maxval)):
          minval, maxval = -1.0, 1.0
      elif minval == maxval:
          minval, maxval = minval - 1, minval + 1
      return minval, maxval
  
imports: from __future__ import annotations
  from packaging.version import Version
  import inspect
  import warnings
  import os
  from math import isnan
  import numpy
  import pandas
  import xarray
  from datashader.utils import Expr, ngjit
  from datashader.macros import expand_varargs
label_desc: Use image node_id 2 for calling the Glyph obj's underlying member method code with example usage: obj.maybe_expand_bounds(bounds) and returns: minval,  maxval