code: def has_var_dim(ds):
      """Returns True if datashape has a variable dimension
  
      Note currently treats variable length string as scalars.
  
      >>> has_var_dim(dshape('2 * int32'))
      False
      >>> has_var_dim(dshape('var * 2 * int32'))
      True
      """
      return has((coretypes.Ellipsis, coretypes.Var), ds)
  
file_path: datashader/datashader/datashape/util/__init__.py
imports: from __future__ import print_function, division, absolute_import
  from itertools import chain
  import operator
  from ..None import py2help
  from ..None import parser
  from ..None import type_symbol_table
  from ..validation import validate
  from ..None import coretypes
label_desc: Use image node_id 5 for calling a global function with example usage: has_var_dim(ds) and returns: has