class_docstr: Interface for implementing a Trial Scheduler class.
  
  Note to Tune developers: If a new scheduler is added, please update
  `air/_internal/usage.py`.
docstr: Pass search properties to scheduler.
  
  This method acts as an alternative to instantiating schedulers
  that react to metrics with their own `metric` and `mode` parameters.
  
  Args:
      metric: Metric to optimize
      mode: One of ["min", "max"]. Direction to optimize.
      **spec: Any kwargs for forward compatiblity.
          Info like Experiment.PUBLIC_KEYS is provided through here.
docstr_tok: ["Pass","search","properties","to","scheduler",".","This","method","acts","as","an","alternative","to","instantiating","schedulers","that","react","to","metrics","with","their","own","`","metric","`","and","`","mode","`","parameters",".","Args",":","metric",":","Metric","to","optimize","mode",":","One","of","[","``","min","''",",","``","max","''","]",".","Direction","to","optimize",".","*","*","spec",":","Any","kwargs","for","forward","compatiblity",".","Info","like","Experiment.PUBLIC_KEYS","is","provided","through","here","."]
code: def set_search_properties(
      self, metric: Optional[str], mode: Optional[str], **spec
  ) -> bool:
      """Pass search properties to scheduler.
  
      This method acts as an alternative to instantiating schedulers
      that react to metrics with their own `metric` and `mode` parameters.
  
      Args:
          metric: Metric to optimize
          mode: One of ["min", "max"]. Direction to optimize.
          **spec: Any kwargs for forward compatiblity.
              Info like Experiment.PUBLIC_KEYS is provided through here.
      """
      if self._metric and metric:
          return False
      if metric:
          self._metric = metric
  
      if self._metric is None:
          # Per default, use anonymous metric
          self._metric = DEFAULT_METRIC
  
      return True
  
imports: from typing import Dict, Optional, TYPE_CHECKING
  from ray.air._internal.usage import tag_scheduler
  from ray.tune.result import DEFAULT_METRIC
  from ray.tune.experiment import Trial
  from ray.util.annotations import DeveloperAPI, PublicAPI
label_desc: Use image node_id 4 for calling the TrialScheduler obj's underlying member method code with example usage: obj.set_search_properties(metric, mode) and returns: True, False