code: def isdtype(dtype, kind, *, xp):
      """Returns a boolean indicating whether a provided dtype is of type "kind".
  
      Included in the v2022.12 of the Array API spec.
      https://data-apis.org/array-api/latest/API_specification/generated/array_api.isdtype.html
      """
      if isinstance(kind, tuple):
          return any(_isdtype_single(dtype, k, xp=xp) for k in kind)
      else:
          return _isdtype_single(dtype, kind, xp=xp)
  
imports: import math
  from functools import wraps
  import numpy
  import scipy.special
  from .._config import get_config
  from .fixes import parse_version
label_desc: Use image node_id 5 for calling a global function with example usage: isdtype(dtype, kind) and returns: any, _isdtype_single