code: def __init__(self, strategy="random", class_weight_method="sqrt"):
      if strategy.lower() in self.STRATEGIES:
          self._strategy = strategy.lower()
  
      if class_weight_method.lower() in self.CLASS_WEIGHT_METHODS:
          self._class_weight_method = class_weight_method.lower()
  
imports: import numpy
label_desc: Use image node_id 1 to create a new SamplingStrategy object from inherited base classes: object with example: obj = SamplingStrategy(strategy, class_weight_method)