code: def numpy_histogram(a, bins=10, range=None, normed=False, weights=None):
      '''A version of numpy.histogram that accounts for numpy's version'''
      args = inspect.getargs(np.histogram.__code__)[0]
      if args[-1] == "new":
          return np.histogram(a, bins, range, normed, weights, new=True)
      return np.histogram(a, bins, range, normed, weightsf numpy_histogram(a, bins=10, range=None, normed=False, weights=None):
      '''A version of numpy.histogram that accounts for numpy's version'''
      args = inspect.getargs(np.histogram.__code__)[0]
      if args[-1] == "new":
          return np.histogram(a, bins, range, normed, weights, new=True)
      return np.histogram(a, bins, range, normed, weights)
docs: A version of numpy.histogram that accounts for numpy's version