class_docstr: Base class for glyphs.
class_docstr_tok: ["Base","class","for","glyphs","."]
code: def _expand_aggs_and_cols(append, ndims, antialiased):
      if os.environ.get("NUMBA_DISABLE_JIT", None):
          # If the NUMBA_DISABLE_JIT environment is set, then we return an
          # identity decorator (one that return function unchanged).
          #
          # Doing this makes it possible to debug functions that are
          # decorated with @jit and @expand_varargs decorators
          return lambda fn: fn
  
      with warnings.catch_warnings():
          warnings.simplefilter("ignore")
          try:
              # Numba keeps original function around as append.py_func
              append_args = inspect.getfullargspec(append.py_func).args
          except (TypeError, AttributeError):
              # Treat append as a normal python function
              append_args = inspect.getfullargspec(append).args
  
      # Get number of arguments accepted by append
      append_arglen = len(append_args)
  
      # We will subtract 2 because we always pass in the x and y position
      xy_arglen = 2
  
      # We will also subtract the number of dimensions in this glyph,
      # because that's how many data index arguments are passed to append
      dim_arglen = ndims or 0
  
      # The remaining arguments are for aggregates and columns
      aggs_and_cols_len = append_arglen - xy_arglen - dim_arglen
  
      # Antialiased append() calls also take aa_factor argument
      if antialiased:
          aggs_and_cols_len -= 2
  
      return expand_varargs(aggs_and_cols_len)
  
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 8 for calling the Glyph obj's underlying member method code with example usage: obj._expand_aggs_and_cols(append, ndims, antialiased) and returns: expand_varargs, function