code: def _histogramdd_dispatcher(
      sample,
      bins=None,
      range=None,
      normed=None,
      weights=None,
      density=None,
  ):
      if hasattr(
          sample, "shape"
      ):  # same condition as used in histogramdd
          yield sample
      else:
          for s in sample:
              yield s
      try:
          for b in bins:
              yield b
      except TypeError:
          pass
      yield weights
  
imports: from __future__ import division, absolute_import, print_function
  import functools
  import operator
  import warnings
  import numpy
  from numpy.compat.py3k import basestring
  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, normed, weights, density) without return types