code: def log(
      msg, formatter=None, context=None, real_bad=False, real_good=False
  ):
      cstr = ""
      fstr = ""
      if context:
          cstr = " in context '%s'" % context["name"]
      if formatter:
          fstr = " %s" % formatter
      if cstr or fstr:
          line = "###%s%s: %s ###" % (fstr, cstr, msg)
      else:
          line = "### %s ###" % msg
      if real_bad:
          line = click.style(line, fg="red", bold=True)
      elif real_good:
          line = click.style(line, fg="green", bold=True)
      else:
          line = click.style(line, fg="white", bold=True)
  
      pid = os.getpid()
      click.echo("[pid %s] %s" % (pid, line))
  
imports: import sys
  import os
  import json
  import uuid
  import glob
  import importlib
  import tempfile
  import shutil
  import subprocess
  from multiprocessing import Pool
  from metaflow._vendor import click
  from metaflow_test import MetaflowTest
  from metaflow_test.formatter import FlowFormatter
label_desc: Use image node_id 3 for calling a global function with example usage: log(msg, formatter, context, real_bad, real_good) without return types