code: def _send_msg(msg, port):
      log.debug("connecting to cmd notify port %i", port)
      try:
          sock = socket.create_connection(("*", port))
      except Exception as e:
          raise MsgSendError(e, port) from e
      else:
          log.debug("sending msg %r to notify port %i", msg, port)
          with sock:
              sock.send(msg)
  
file_path: guildai/guild/cmd_notify.py
imports: import logging
  import socket
label_desc: Use image node_id 6 for calling a global function with example usage: _send_msg(msg, port) without return types