code: def _compute_class_weights(self, class_weights, class_counts):
      class_weights = compute_class_weights(
          class_weights=class_weights,
          class_counts=class_counts,
          n_total=self.config.dataset_size,
          multilabel=True,
      )
      return class_weights
  
imports: import tensorflow
  import numpy
  from finetune.base import BaseModel
  from finetune.encoding.target_encoders import MultilabelClassificationEncoder
  from finetune.nn.target_blocks import multi_classifier
  from finetune.util.imbalance import compute_class_weights
  from finetune.input_pipeline import BasePipeline
label_desc: Use image node_id 1 for calling the MultilabelClassificationPipeline obj's underlying member method code with example usage: obj._compute_class_weights(class_weights, class_counts) and returns: class_weights