prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  [Object spilling] Raylet automatically reloads spilled objects back into object store
  
  
  
  </issue>
  <code>
  [start of python/ray/experimental/object_spilling.py]
  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
  [end of python/ray/experimental/object_spilling.py]
  [start of python/ray/experimental/__init__.py]
  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 of python/ray/experimental/__init__.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
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"}]}