code: def defaultAutoRangeMethods(inspector, intialItems=None):
      
      rangeFunctions = OrderedDict({} if intialItems is None else intialItems)
      rangeFunctions['use all data'] = partial(inspectorDataRange, inspector, 0.0)
      for percentage in [0.1, 0.2, 0.5, 1, 2, 5, 10, 20]:
          label = "discard {}%".format(percentage)
          rangeFunctions[label] = partial(inspectorDataRange, inspector, percentage)
      return rangeFunctions
docs: Creates an ordered dict with default autorange methods for an inspector.
  
          :param inspector: the range methods will work on (the sliced array) of this inspector.
          :param intialItems: will be passed on to the  OrderedDict constructor.