def METHOD_NAME(
    self,
    **kwargs: t.Any,
) -> str:
    kwargs.update(DEFAULT_ARGS)
    if PYDANTIC_MAJOR_VERSION >= 2:
        # Pydantic v2 doesn't support arbitrary arguments for json.dump().
        kwargs.pop("sort_keys", None)
        return super().model_dump_json(**kwargs)  # type: ignore
    return super().METHOD_NAME(**kwargs)  # type: ignore