Mirrored PR of #5109 (#5150)
* enable stablehlo dump
* refactor
* fix merging conflict
* Use 1 Python API for StableHLO dump
* enhance error handling in conversions
* rename dump API
* enhance doc string
* linter
* add resnet18 to test
* remove print in test
* fix doc str
* udpate doc string
* add missing dot in doc string
* refactor and enhance teset coverage
* update empty tensor collection index handling logic
* fix linter
* use 1 pybind
* remove syncing previous computation logic
* fix linter
* Avoid sync live tensors
* disable remote bazel cache in CI
* remove declaration of deleted method
* Revert "disable remote bazel cache in CI"
This reverts commit 42786d918e26e75a45d25a01a3e48d3c34266ae5.
* remove unused function