code: def send_mail(message, subject, email_id):
      try:
          subprocess.Popen(
              'echo "{message}" | mail -s "{subject}" {email}'.format(
                  message=message, subject=subject, email=email_id
              ),
              shell=True,
          )
      except Exception as e:
          logger.info(
              "Unable to send mail due to error:\n {error}".format(
                  error=str(e)
              )
          )
          pass
  
imports: from __future__ import print_function
  from __future__ import division
  import argparse
  import logging
  import math
  import os
  import subprocess
  import sys
  import threading
label_desc: Use image node_id 1 for calling a global function with example usage: send_mail(message, subject, email_id) without return types