code: def _histogram2d_dispatcher(
      x,
      y,
      bins=None,
      range=None,
      normed=None,
      weights=None,
      density=None,
  ):
      yield x
      yield y
  
      # This terrible logic is adapted from the checks in histogram2d
      try:
          N = len(bins)
      except TypeError:
          N = 1
      if N == 2:
          for b in bins:
              yield b
      else:
          yield bins
  
      yield weights
  
imports: from __future__ import division, absolute_import, print_function
  import functools
  from numpy.core.numeric import absolute, asanyarray, arange, zeros, greater_equal, multiply, ones, asarray, where, int8, int16, int32, int64, empty, promote_types, diagonal, nonzero
  from numpy.core.overrides import set_module
  from numpy.core import overrides
  from numpy.core import iinfo, transpose
label_desc: Use image node_id 15 for calling a global function with example usage: _histogram2d_dispatcher(x, y, bins, range, normed, weights, density) without return types