code: def __init__(self, result: SchedulingResult) -> None:
      self.result = result
      super().__init__(f"Batch scheduling failed with result {result}")
  
imports: from enum import Enum
label_desc: Use image node_id 1 to create a new SchedulingError object from inherited base classes: RuntimeError with example: obj = SchedulingError(result)