code: def __exit__(self, exc_type, exc_value, traceback):
      try:
          if exc_type is KeyboardInterrupt:
              self._cm_experiment.release(self._cm_trial, "interrupted")
          elif exc_type is not None:
              self._cm_experiment.release(self._cm_trial, "broken")
          elif self._cm_trial.status == "reserved":
              self._cm_experiment.release(self._cm_trial)
      except AlreadyReleased as e:
          log.warning(e)
  
imports: from __future__ import annotations
  import copy
  import hashlib
  import logging
  import os
  import warnings
  from datetime import timedelta
  from orion.core.utils.exceptions import InvalidResult
  from orion.core.utils.flatten import unflatten
label_desc: Use image node_id 5 for calling the TrialCM obj's underlying member method code with example usage: obj.__exit__(exc_type, exc_value, traceback) without return types