code: def fatal_errors():
      """Context manager meant to wrap an entire program and present schema errors in
      an easy-to-read way.
  
      """
      try:
          yield
      except FatalSchemaError as e:
          u.err(f"{e.context}\n{e.message}\n\n")
          sys.exit(1)
      except s.SchemaError as e:
          u.err(f"\n{e.code}\n\n")
          sys.exit(1)
  
file_path: caliban/caliban/util/schema.py
imports: import os
  import sys
  from contextlib import contextmanager
  from typing import Optional
  import commentjson
  import caliban.util
  import schema
label_desc: Use image node_id 2 for calling a global function with example usage: fatal_errors() without return types