class_docstr: State of a :class:`~optuna.trial.Trial`.
  
  Attributes:
      RUNNING:
          The :class:`~optuna.trial.Trial` is running.
      WAITING:
          The :class:`~optuna.trial.Trial` is waiting and unfinished.
      COMPLETE:
          The :class:`~optuna.trial.Trial` has been finished without any error.
      PRUNED:
          The :class:`~optuna.trial.Trial` has been pruned with
          :class:`~optuna.exceptions.TrialPruned`.
      FAIL:
          The :class:`~optuna.trial.Trial` has failed due to an uncaught error.
class_docstr_tok: ["State","of","a",":","class",":","`","~optuna.trial.Trial","`",".","Attributes",":","RUNNING",":","The",":","class",":","`","~optuna.trial.Trial","`","is","running",".","WAITING",":","The",":","class",":","`","~optuna.trial.Trial","`","is","waiting","and","unfinished",".","COMPLETE",":","The",":","class",":","`","~optuna.trial.Trial","`","has","been","finished","without","any","error",".","PRUNED",":","The",":","class",":","`","~optuna.trial.Trial","`","has","been","pruned","with",":","class",":","`","~optuna.exceptions.TrialPruned","`",".","FAIL",":","The",":","class",":","`","~optuna.trial.Trial","`","has","failed","due","to","an","uncaught","error","."]
docstr: Return a bool value to represent whether the trial state is unfinished or not.
  
  The unfinished state is either ``RUNNING`` or ``WAITING``.
docstr_tok: ["Return","a","bool","value","to","represent","whether","the","trial","state","is","unfinished","or","not",".","The","unfinished","state","is","either","``","RUNNING","``","or","``","WAITING","``","."]
code: def is_finished(self) -> bool:
      """Return a bool value to represent whether the trial state is unfinished or not.
  
      The unfinished state is either ``RUNNING`` or ``WAITING``.
      """
  
      return self != TrialState.RUNNING and self != TrialState.WAITING
  
imports: import enum
label_desc: Use image node_id 2 for calling the TrialState obj's underlying member method code with example usage: obj.is_finished() and returns: unknown