prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  [Object spilling] Raylet automatically reloads spilled objects back into object store
  
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `python/ray/experimental/object_spilling.py`
  Content:
  ```
  1 import ray
  2 
  3 
  4 def force_spill_objects(object_refs):
  5     """Force spilling objects to external storage.
  6 
  7     Args:
  8         object_refs: Object refs of the objects to be
  9             spilled.
  10     """
  11     core_worker = ray.worker.global_worker.core_worker
  12     # Make sure that the values are object refs.
  13     for object_ref in object_refs:
  14         if not isinstance(object_ref, ray.ObjectRef):
  15             raise TypeError(
  16                 f"Attempting to call `force_spill_objects` on the "
  17                 f"value {object_ref}, which is not an ray.ObjectRef.")
  18     return core_worker.force_spill_objects(object_refs)
  19 
  20 
  21 def force_restore_spilled_objects(object_refs):
  22     """Force restoring objects from external storage.
  23 
  24     Args:
  25         object_refs: Object refs of the objects to be
  26             restored.
  27     """
  28     core_worker = ray.worker.global_worker.core_worker
  29     # Make sure that the values are object refs.
  30     for object_ref in object_refs:
  31         if not isinstance(object_ref, ray.ObjectRef):
  32             raise TypeError(
  33                 f"Attempting to call `force_restore_spilled_objects` on the "
  34                 f"value {object_ref}, which is not an ray.ObjectRef.")
  35     return core_worker.force_restore_spilled_objects(object_refs)
  36
  ```
  
  Path: `python/ray/experimental/__init__.py`
  Content:
  ```
  1 from .dynamic_resources import set_resource
  2 from .object_spilling import force_spill_objects, force_restore_spilled_objects
  3 __all__ = [
  4     "set_resource",
  5     "force_spill_objects",
  6     "force_restore_spilled_objects",
  7 ]
  8
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/python/ray/experimental/__init__.py b/python/ray/experimental/__init__.py
  --- a/python/ray/experimental/__init__.py
  +++ b/python/ray/experimental/__init__.py
  @@ -1,7 +1,6 @@
   from .dynamic_resources import set_resource
  -from .object_spilling import force_spill_objects, force_restore_spilled_objects
  +from .object_spilling import force_spill_objects
   __all__ = [
       "set_resource",
       "force_spill_objects",
  -    "force_restore_spilled_objects",
   ]
  diff --git a/python/ray/experimental/object_spilling.py b/python/ray/experimental/object_spilling.py
  --- a/python/ray/experimental/object_spilling.py
  +++ b/python/ray/experimental/object_spilling.py
  @@ -16,20 +16,3 @@
                   f"Attempting to call `force_spill_objects` on the "
                   f"value {object_ref}, which is not an ray.ObjectRef.")
       return core_worker.force_spill_objects(object_refs)
  -
  -
  -def force_restore_spilled_objects(object_refs):
  -    """Force restoring objects from external storage.
  -
  -    Args:
  -        object_refs: Object refs of the objects to be
  -            restored.
  -    """
  -    core_worker = ray.worker.global_worker.core_worker
  -    # Make sure that the values are object refs.
  -    for object_ref in object_refs:
  -        if not isinstance(object_ref, ray.ObjectRef):
  -            raise TypeError(
  -                f"Attempting to call `force_restore_spilled_objects` on the "
  -                f"value {object_ref}, which is not an ray.ObjectRef.")
  -    return core_worker.force_restore_spilled_objects(object_refs)
  
verification_info: {"golden_diff": "diff --git a/python/ray/experimental/__init__.py b/python/ray/experimental/__init__.py\n--- a/python/ray/experimental/__init__.py\n+++ b/python/ray/experimental/__init__.py\n@@ -1,7 +1,6 @@\n from .dynamic_resources import set_resource\n-from .object_spilling import force_spill_objects, force_restore_spilled_objects\n+from .object_spilling import force_spill_objects\n __all__ = [\n     \"set_resource\",\n     \"force_spill_objects\",\n-    \"force_restore_spilled_objects\",\n ]\ndiff --git a/python/ray/experimental/object_spilling.py b/python/ray/experimental/object_spilling.py\n--- a/python/ray/experimental/object_spilling.py\n+++ b/python/ray/experimental/object_spilling.py\n@@ -16,20 +16,3 @@\n                 f\"Attempting to call `force_spill_objects` on the \"\n                 f\"value {object_ref}, which is not an ray.ObjectRef.\")\n     return core_worker.force_spill_objects(object_refs)\n-\n-\n-def force_restore_spilled_objects(object_refs):\n-    \"\"\"Force restoring objects from external storage.\n-\n-    Args:\n-        object_refs: Object refs of the objects to be\n-            restored.\n-    \"\"\"\n-    core_worker = ray.worker.global_worker.core_worker\n-    # Make sure that the values are object refs.\n-    for object_ref in object_refs:\n-        if not isinstance(object_ref, ray.ObjectRef):\n-            raise TypeError(\n-                f\"Attempting to call `force_restore_spilled_objects` on the \"\n-                f\"value {object_ref}, which is not an ray.ObjectRef.\")\n-    return core_worker.force_restore_spilled_objects(object_refs)\n", "issue": "[Object spilling] Raylet automatically reloads spilled objects back into object store\n\r\n\n", "before_files": [{"content": "import ray\n\n\ndef force_spill_objects(object_refs):\n    \"\"\"Force spilling objects to external storage.\n\n    Args:\n        object_refs: Object refs of the objects to be\n            spilled.\n    \"\"\"\n    core_worker = ray.worker.global_worker.core_worker\n    # Make sure that the values are object refs.\n    for object_ref in object_refs:\n        if not isinstance(object_ref, ray.ObjectRef):\n            raise TypeError(\n                f\"Attempting to call `force_spill_objects` on the \"\n                f\"value {object_ref}, which is not an ray.ObjectRef.\")\n    return core_worker.force_spill_objects(object_refs)\n\n\ndef force_restore_spilled_objects(object_refs):\n    \"\"\"Force restoring objects from external storage.\n\n    Args:\n        object_refs: Object refs of the objects to be\n            restored.\n    \"\"\"\n    core_worker = ray.worker.global_worker.core_worker\n    # Make sure that the values are object refs.\n    for object_ref in object_refs:\n        if not isinstance(object_ref, ray.ObjectRef):\n            raise TypeError(\n                f\"Attempting to call `force_restore_spilled_objects` on the \"\n                f\"value {object_ref}, which is not an ray.ObjectRef.\")\n    return core_worker.force_restore_spilled_objects(object_refs)\n", "path": "python/ray/experimental/object_spilling.py"}, {"content": "from .dynamic_resources import set_resource\nfrom .object_spilling import force_spill_objects, force_restore_spilled_objects\n__all__ = [\n    \"set_resource\",\n    \"force_spill_objects\",\n    \"force_restore_spilled_objects\",\n]\n", "path": "python/ray/experimental/__init__.py"}], "after_files": [{"content": "import ray\n\n\ndef force_spill_objects(object_refs):\n    \"\"\"Force spilling objects to external storage.\n\n    Args:\n        object_refs: Object refs of the objects to be\n            spilled.\n    \"\"\"\n    core_worker = ray.worker.global_worker.core_worker\n    # Make sure that the values are object refs.\n    for object_ref in object_refs:\n        if not isinstance(object_ref, ray.ObjectRef):\n            raise TypeError(\n                f\"Attempting to call `force_spill_objects` on the \"\n                f\"value {object_ref}, which is not an ray.ObjectRef.\")\n    return core_worker.force_spill_objects(object_refs)\n", "path": "python/ray/experimental/object_spilling.py"}, {"content": "from .dynamic_resources import set_resource\nfrom .object_spilling import force_spill_objects\n__all__ = [\n    \"set_resource\",\n    \"force_spill_objects\",\n]\n", "path": "python/ray/experimental/__init__.py"}]}