code: def test_replica_actor_infeasible(serve_instance):
      """Test that we get a validation error if the replica doesn't fit in the bundle."""
  
      class Infeasible:
          pass
  
      with pytest.raises(ValueError):
          serve.deployment(placement_group_bundles=[{"CPU": 0.1}])(
              Infeasible
          )
  
      with pytest.raises(ValueError):
          serve.deployment(Infeasible).options(
              placement_group_bundles=[{"CPU": 0.1}]
          )
  
file_path: ray/python/ray/serve/tests/test_replica_placement_group.py
imports: import os
  import sys
  import pytest
  import ray
  from ray import serve
  from ray._private.test_utils import wait_for_condition
  from ray.serve._private.utils import get_all_live_placement_group_names
  from ray.serve.context import _get_global_client
  from ray.util.placement_group import PlacementGroup, get_current_placement_group
  from ray.util.scheduling_strategies import PlacementGroupSchedulingStrategy
label_desc: Use image node_id 8 for calling a global function with example usage: test_replica_actor_infeasible(serve_instance) without return types