class_docstr: Common class for action criterion that are based on trial information.
class_docstr_tok: ["Common","class","for","action","criterion","that","are","based","on","trial","information","."]
docstr: All the trials to check from the entire experiment that meet
  all the provided status filters.
  
  Args:
      experiment: The experiment associated with this GenerationStrategy.
docstr_tok: ["All","the","trials","to","check","from","the","entire","experiment","that","meet","all","the","provided","status","filters",".","Args",":","experiment",":","The","experiment","associated","with","this","GenerationStrategy","."]
code: def all_trials_to_check(self, experiment: Experiment) -> Set[int]:
      """All the trials to check from the entire experiment that meet
      all the provided status filters.
  
      Args:
          experiment: The experiment associated with this GenerationStrategy.
      """
      trials_to_check = set(experiment.trials.keys())
      if self.only_in_statuses is not None:
          trials_to_check = self.experiment_trials_by_status(
              experiment=experiment, statuses=self.only_in_statuses
          )
      # exclude the trials to those not in the specified statuses
      if self.not_in_statuses is not None:
          trials_to_check -= self.experiment_trials_by_status(
              experiment=experiment, statuses=self.not_in_statuses
          )
      return trials_to_check
  
imports: from abc import abstractmethod
  from logging import Logger
  from typing import List, Optional, Set
  from ax.core.base_trial import TrialStatus
  from ax.core.experiment import Experiment
  from ax.exceptions.generation_strategy import MaxParallelismReachedException
  from ax.modelbridge.generation_strategy import DataRequiredError
  from ax.utils.common.base import SortableBase
  from ax.utils.common.logger import get_logger
  from ax.utils.common.serialization import SerializationMixin, serialize_init_args
label_desc: Use image node_id 3 for calling the TrialBasedCriterion obj's underlying member method code with example usage: obj.all_trials_to_check(experiment) and returns: trials_to_check