code: def prune(
      self,
      study: "optuna.study.Study",
      trial: "optuna.trial.FrozenTrial",
  ) -> bool:
      return self.is_pruning
  
imports: from __future__ import annotations
  import optuna
label_desc: Use image node_id 2 for calling the DeterministicPruner obj's underlying member method code with example usage: obj.prune(study, trial) and returns: self