Update docs metadata mutation logic (#19614)
Update docs metadata mutation logic (#19614)

Co-authored-by: Daniel Jurek <ef5be98d5567382bd5b0c07f3c661a000bbfb4dd@microsoft.com>
Azure/azure-sdk-for-python,Azure/azure-sdk-for-python,Azure/azure-sdk-for-python,Azure/azure-sdk-for-python