code: def make_message(s, **kwargs):
      # noinspection PyBroadException
      try:
          user = getpass.getuser()
      except Exception:
          # noinspection PyBroadException
          try:
              import os
  
              user = "{}".format(os.getuid())
          except Exception:
              user = "unknown"
  
      # noinspection PyBroadException
      try:
          host = gethostname()
      except Exception:
          host = "localhost"
  
      args = dict(
          user=user,
          host=host,
          time=datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S"),
      )
      args.update(kwargs)
      return s % args
  
imports: import getpass
  import re
  from _socket import gethostname
  from datetime import datetime
  from typing import Optional, Any
  from ..backend_api.services import projects, queues
  from ..debugging.log import get_logger, LoggerRoot
label_desc: Use image node_id 1 for calling a global function with example usage: make_message(s) and returns: unknown