def METHOD_NAME(self, METHOD_NAME):
    if isinstance(METHOD_NAME, dict):
        for k, v in METHOD_NAME.items():
            METHOD_NAME[k] = np.clip(v, self.min_v, self.max_v)
        return METHOD_NAME
    else:
        return np.clip(METHOD_NAME, self.min_v, self.max_v)