reates a diagnostic for the given arguments. Args: rule: The rule that triggered the diagnostic. level: The level of the diagnostic. message: The message of the diagnostic. **kwargs: Additional arguments to pass to the Diagnostic constructor. Returns: The created diagnostic. Raises: ValueError: If the rule is not supported by the tool. N)