code: def log(s: str, level: Level):
      # Add word wrapping, see https://github.com/replicate/keepsake/issues/348
  
      prompt = "═══╡ "
      continuation_prompt = "   │ "
  
      # We should support NO_COLOR, see https://github.com/replicate/keepsake/issues/349
      if sys.stderr.isatty():
          kwargs = {"style": "faint"}
          if level == Level.WARN:
              kwargs = {"fg": "yellow"}
          elif level == Level.ERROR:
              kwargs = {"fg": "red"}
  
          prompt = color(prompt, **kwargs)
          continuation_prompt = color(continuation_prompt, **kwargs)
  
      for i, line in enumerate(s.split("\n")):
          if i == 0:
              print(prompt + line, file=sys.stderr)
          else:
              print(continuation_prompt + line, file=sys.stderr)
  
file_path: keepsake/python/keepsake/console.py
imports: import enum
  from functools import wraps
  import sys
  from ._vendor.colors import color
label_desc: Use image node_id 4 for calling a global function with example usage: log(s, level) without return types