[Core] cleanup pickle5 version check (#23885)
[Core] cleanup pickle5 version check (#23885)

* cleanup
ray-project/ray,ray-project/ray,ray-project/ray,ray-project/ray,ray-project/ray,ray-project/ray,ray-project/ray,ray-project/ray