Write pytest unit tests for the untested public function convert_error_details_to_typed_dict. Public source: omnibase_core/src/omnibase_core/types/converter_error_details.py:15. Return ONLY a complete test module, no explanation or Markdown. Import the function and any support types from solution. Do not redefine or monkeypatch the target function. Use meaningful assertions and edge cases. Tests run in isolation on this host. Required behavior to cover: String coercion, optional stack/context filtering, timestamps, no input mutation.

Exact public source slice including required support:
from __future__ import annotations

from omnibase_core.types.converter_datetime_parser import parse_datetime

from omnibase_core.types.typed_dict_error_details import TypedDictErrorDetails

from omnibase_core.types.typed_dict_legacy_error import TypedDictLegacyError

def convert_error_details_to_typed_dict(
    error: TypedDictLegacyError,
) -> TypedDictErrorDetails:
    """Convert legacy error dict to TypedDict, coercing all values to strings."""
    result = TypedDictErrorDetails(
        error_code=str(error.get("error_code", "")),
        error_message=str(error.get("error_message", "")),
        error_type=str(error.get("error_type", "")),
        timestamp=parse_datetime(error.get("timestamp")),
    )

    if "stack_trace" in error and error["stack_trace"] is not None:
        result["stack_trace"] = str(error["stack_trace"])

    if "context" in error and isinstance(error["context"], dict):
        context_dict: dict[str, str] = {
            k: str(v) for k, v in error["context"].items() if v is not None
        }
        result["context"] = context_dict

    return result
