This ability exists in the core framework but isn't exposed in the Python API.
Here's an example in the Durable Functions Python SDK, which can be used for inspiration: https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-custom-orchestration-status?tabs=python