code: def has(typ, ds):
      if isinstance(ds, typ):
          return True
      if isinstance(ds, coretypes.Record):
          return any(has(typ, t) for t in ds.types)
      if isinstance(ds, coretypes.Mono):
          return any(has(typ, p) for p in ds.parameters)
      if isinstance(ds, (list, tuple)):
          return any(has(typ, item) for item in ds)
      return False
  
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 6 for calling a global function with example usage: has(typ, ds) and returns: False, True, any, any, any