code: def impurity_improvement(
      self,
      impurity_parent: float,
      impurity_left: float,
      impurity_right: float,
  ):
      return (
          self.weighted_n_node_samples / self.weighted_n_samples
      ) * (
          impurity_parent
          - (
              self.weighted_n_right
              / self.weighted_n_node_samples
              * impurity_right
          )
          - (
              self.weighted_n_left
              / self.weighted_n_node_samples
              * impurity_left
          )
      )
  
imports: from abc import ABC, abstractmethod
  import ivy
label_desc: Use image node_id 5 for calling the Criterion obj's underlying member method code with example usage: obj.impurity_improvement(impurity_parent, impurity_left, impurity_right) and returns: unknown