code: def assert_valid_sdl(document_ast: DocumentNode) -> None:
      
  
      errors = validate_sdl(document_ast)
      if errors:
          raise TypeError("\n\n".join(error.message for error in errors))
docs: Assert document is valid SDL.
  
      Utility function which asserts a SDL document is valid by throwing an error if it
      is invalid.