code: def assert_valid_schema(schema: GraphQLSchema) -> None:
      
      errors = validate_schema(schema)
      if errors:
          raise TypeError("\n\n".join(error.message for error in errors))
docs: Utility function which asserts a schema is valid.
  
      Throws a TypeError if the schema is invalid.