code: def test_less_partition_than_actors(orca_context_fixture):
      ray_xshards, _ = get_ray_xshards()
      part_num = ray_xshards.num_partitions()
  
      actor_num = 6
      actors = [Add1Actor.remote() for i in range(actor_num)]
      (
          parts_list,
          _,
          assigned_actors,
      ) = ray_xshards.assign_partitions_to_actors(actors)
  
      assert len(parts_list) == len(assigned_actors) == part_num
  
      for counter in range(len(assigned_actors)):
          assert len(parts_list[counter]) == 1
  
file_path: analytics-zoo/pyzoo/test/zoo/orca/data/test_ray_xshards.py
imports: import pytest
  import ray
  from zoo.orca.data.ray_xshards import RayXShards
label_desc: Use image node_id 6 for calling a global function with example usage: test_less_partition_than_actors(orca_context_fixture) without return types