code: def on_trial_complete(
      self,
      trial_id: str,
      result: Optional[Dict] = None,
      error: bool = False,
  ):
      self.counter["complete"] += 1
      if result:
          self._process_result(result)
      if trial_id in self.live_trials:
          del self.live_trials[trial_id]
  
file_path: ray/python/ray/tune/search/_mock.py
imports: from typing import Dict, List, Optional
  from ray.tune.search import Searcher, ConcurrencyLimiter
  from ray.tune.search.search_generator import SearchGenerator
  from ray.tune.experiment import Trial
label_desc: Use image node_id 4 for calling the _MockSearcher obj's underlying member method code with example usage: obj.on_trial_complete(trial_id, result, error) without return types