code: def test_placement_group_scheduling_warning(ray_start_regular_shared):
      @ray.remote
      class Foo:
          def foo():
              pass
  
      pg = ray.util.placement_group(
          name="bar",
          strategy="PACK",
          bundles=[
              {"CPU": 1, "GPU": 0},
          ],
      )
      ray.get(pg.ready())
  
      # Warning on using deprecated parameters.
      with warnings.catch_warnings(record=True) as w:
          Foo.options(
              placement_group=pg, placement_group_bundle_index=0
          ).remote()
      assert any(
          "placement_group parameter is deprecated"
          in str(warning.message)
          for warning in w
      )
      assert any(
          f"docs.ray.io/en/{get_ray_doc_version()}"
          in str(warning.message)
          for warning in w
      )
  
      # Pointing to the same doc version as ray.__version__.
      ray.__version__ = "1.13.0"
      with warnings.catch_warnings(record=True) as w:
          Foo.options(
              placement_group=pg, placement_group_bundle_index=0
          ).remote()
      assert any(
          "docs.ray.io/en/releases-1.13.0" in str(warning.message)
          for warning in w
      )
  
      # No warning when scheduling_strategy is specified.
      with warnings.catch_warnings(record=True) as w:
          Foo.options(
              scheduling_strategy=PlacementGroupSchedulingStrategy(
                  placement_group=pg, placement_group_bundle_index=0
              ),
          ).remote()
      assert not w
  
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 13 for calling a global function with example usage: test_placement_group_scheduling_warning(ray_start_regular_shared) without return types