code: def _cmd_exit_msg(ctx, exc_type):
      if exc_type:
          return _gen_cmd_msg(b"cmd-error", ctx)
      return _gen_cmd_msg(b"cmd-exit", ctx)
  
file_path: guildai/guild/cmd_notify.py
imports: import logging
  import socket
label_desc: Use image node_id 2 for calling a global function with example usage: _cmd_exit_msg(ctx, exc_type) and returns: _gen_cmd_msg, _gen_cmd_msg