code: def mode(data, bins=None):
      """Returns location max value from histogram."""
      if bins is None:
          bins = int(len(data) / 10.0)
          if bins < 2:
              bins = 2
      y, x = np.histogram(data, bins=bins)
      ind = np.argmax(y)
      mode = 0.5 * (x[ind] + x[ind + 1])
      return mode
  
file_path: pyqtgraph/pyqtgraph/flowchart/library/functions.py
imports: import numpy
  from ...metaarray import MetaArray
label_desc: Use image node_id 6 for calling a global function with example usage: mode(data, bins) and returns: mode