def METHOD_NAME(result, name, diagnosis, category=None, description=None, remediation=None, rawerror=None):
    """Helper function to create diagnosis result dictionaries with defaults."""
    return {
        "result": result,
        "name": name,
        "diagnosis": diagnosis,
        "category": category,
        "description": description,
        "remediation": remediation,
        "rawerror": rawerror,
    }