code: def set_stats(self, low_condition, high_condition, num_past_filter):
      if self.collect_stats:
          self.num_past_filter = num_past_filter
          with torch.no_grad():
              if self.low is not None:
                  self.num_above_low = torch.sum(low_condition).item()
              if self.high is not None:
                  self.num_above_high = torch.sum(high_condition).item()
  
file_path: pytorch-metric-learning/src/pytorch_metric_learning/reducers/threshold_reducer.py
imports: import torch
  from .base_reducer import BaseReducer
label_desc: Use image node_id 7 for calling the ThresholdReducer obj's underlying member method code with example usage: obj.set_stats(low_condition, high_condition, num_past_filter) without return types