code: def send_log(msg: str):
      try:
          url = "https://search.upgini.com/private/api/v2/events/send-light"
  
          try:
              user = getuser()
          except Exception:
              user = "unknown"
  
          data = (
              '{"message": "' + msg + '", "whoamai": "' + user + '"}'
          ).encode()
  
          req = request.Request(url, data=data)
          req.add_header("Content-Type", "application/json")
          request.urlopen(req)
      except Exception:
          pass
  
imports: import sys
  from getpass import getuser
  from logging import Formatter
  from pathlib import Path
  from urllib import request
  from setuptools import find_packages, setup
label_desc: Use image node_id 1 for calling a global function with example usage: send_log(msg) without return types