code: def _handle_msg_send_error(msgError, msg, handler):
      if log.getEffectiveLevel() <= logging.DEBUG:
          log.exception("sending msg %r to port %i", msg, msgError.port)
      log.error(
          "Error sending command message to port %i: %s\n"
          "Set GUILD_CMD_NOTIFY_PORT to a different port or disable "
          "notifications by running 'unset GUILD_CMD_NOTIFY_PORT'",
          msgError.port,
          msgError.error,
      )
      handler.disabledByError = True
  
file_path: guildai/guild/cmd_notify.py
imports: import logging
  import socket
label_desc: Use image node_id 7 for calling a global function with example usage: _handle_msg_send_error(msgError, msg, handler) without return types