This function only exists if CPython was built using the specialized configure option --with-trace-refs. It is intended only for debugging garbage-collection issues.
The official docs include a CPython implementation detail for this entry.
sys/getobjects
getobjects