def METHOD_NAME(self, state_dict: Mapping) -> None:
    """Method replace internal state of the class with provided state dict data.
    Args:
        state_dict: a dict with "counter" and "best_score" keys/values.
    """
    super().METHOD_NAME(state_dict)
    self.counter = state_dict["counter"]
    self.best_score = state_dict["best_score"]