code: def __init__(self, cmd, status=None):
      msg = f"failed to run: {cmd}"
      if status is not None:
          msg += f", exited with {status}"
      super().__init__(msg)
  
imports: from dvc.exceptions import DvcException
label_desc: Use image node_id 1 to create a new StageCmdFailedError object from inherited base classes: DvcException with example: obj = StageCmdFailedError(cmd, status)