code: def test_object_id_backward_compatibility(
      ray_start_shared_local_modes,
  ):
      # We've renamed Python's `ObjectID` to `ObjectRef`, and added a type
      # alias for backward compatibility.
      # This test is to make sure legacy code can still use `ObjectID`.
      # TODO(hchen): once we completely remove Python's `ObjectID`,
      # this test can be removed as well.
  
      # Check that these 2 types are the same.
      assert ray.ObjectID == ray.ObjectRef
      object_ref = ray.put(1)
      # Check that users can use either type in `isinstance`
      assert isinstance(object_ref, ray.ObjectID)
      assert isinstance(object_ref, ray.ObjectRef)
  
imports: import logging
  import os
  import pickle
  import random
  import sys
  import time
  import pytest
  import ray
  import ray.cluster_utils
  from ray._private.test_utils import SignalActor, client_test_enabled, get_error_message, run_string_as_driver
label_desc: Use image node_id 29 for calling a global function with example usage: test_object_id_backward_compatibility(ray_start_shared_local_modes) without return types