code: def update_sparse_goals(self, current_times: int):
      ratio = (
          (1 - self._initial_ratio) * current_times / self.total_times
      )
      self._update_sparse_goals_by_ratio(ratio)
  
imports: from __future__ import annotations
  from collections import defaultdict
  import logging
  from typing import Dict, List
  import torch
  from ..base.compressor import Pruner
  from ..base.wrapper import ModuleWrapper
  from ..utils import Evaluator, _EVALUATOR_DOCSTRING
  from .basic_pruner import LevelPruner, L1NormPruner, L2NormPruner, FPGMPruner
  from .slim_pruner import SlimPruner
  from .taylor_pruner import TaylorPruner
label_desc: Use image node_id 1 for calling the LinearPruner obj's underlying member method code with example usage: obj.update_sparse_goals(current_times) without return types