class_docstr: Metric used to monitor the labels repartition.
class_docstr_tok: ["Metric","used","to","monitor","the","labels","repartition","."]
code: def update_order(self, class_order: Optional[List[int]]):
      self.class_order = class_order
  
imports: from collections import defaultdict
  from typing import Callable, Dict, Sequence, TYPE_CHECKING, Optional, List, Counter, overload
  from matplotlib.figure import Figure
  from avalanche.evaluation import GenericPluginMetric, Metric, PluginMetric
  from avalanche.evaluation.metric_results import MetricValue, AlternativeValues
  from avalanche.evaluation.metric_utils import stream_type, default_history_repartition_image_creator
  from typing_extensions import Literal
label_desc: Use image node_id 4 for calling the LabelsRepartition obj's underlying member method code with example usage: obj.update_order(class_order) without return types