code: def _status_for_exit_status(exit_status):
      assert exit_status is not None, exit_status
      if exit_status == 0:
          return "completed"
      if exit_status < 0:
          return "terminated"
      return "error"
  
imports: import os
  import random
  import threading
  import time
  import uuid
  import yaml
  from guild import opref
  from guild import util
  from guild import yaml_util
label_desc: Use image node_id 1 for calling a global function with example usage: _status_for_exit_status(exit_status) and returns: str, str, str