code: def get_threshold(self):
          
          value_map = dict()
          for key, value in list(self.threshold_classes.items()):
              value_map[key] = [
                  value[0].value(),
                  value[1].value(),
              ]
          return value_map
docs: Return threshold based on current state.