code: def test_object_store_memory_deprecation_warning(
      ray_start_regular_shared,
  ):
      with warnings.catch_warnings(record=True) as w:
  
          @ray.remote(object_store_memory=1)
          class Actor:
              pass
  
          Actor.remote()
      assert any(
          "Setting 'object_store_memory' for actors is deprecated"
          in str(warning.message)
          for warning in w
      )
  
      with warnings.catch_warnings(record=True) as w:
          ray.util.placement_group(
              [{"object_store_memory": 1}], strategy="STRICT_PACK"
          )
      assert any(
          "Setting 'object_store_memory' for bundles is deprecated"
          in str(warning.message)
          for warning in w
      )
      ray.shutdown()
  
imports: import sys
  import warnings
  import os
  import pytest
  import ray
  from ray._private.utils import get_ray_doc_version
  import ray.cluster_utils
  from ray._private.test_utils import placement_group_assert_no_leak
  from ray._private.test_utils import skip_flaky_core_test_premerge
  from ray.util.client.ray_client_helpers import connect_to_client_or_not
  from ray.util.scheduling_strategies import PlacementGroupSchedulingStrategy
label_desc: Use image node_id 14 for calling a global function with example usage: test_object_store_memory_deprecation_warning(ray_start_regular_shared) without return types