code: def _histogramdd_dispatcher(
      sample, bins=None, range=None, density=None, weights=None
  ):
      if hasattr(
          sample, "shape"
      ):  # same condition as used in histogramdd
          yield sample
      else:
          yield from sample
      with contextlib.suppress(TypeError):
          yield from bins
      yield weights
  
imports: import contextlib
  import functools
  import operator
  import warnings
  import numpy
  from numpy._core import overrides
label_desc: Use image node_id 19 for calling a global function with example usage: _histogramdd_dispatcher(sample, bins, range, density, weights) without return types