Backport for 3.x from PR: #84990 Co-authored-by: brno32 <drozdster@gmail.com> (cherry picked from commit 983b12b1fa)
983b12b1fa
get_unique_id