code: def __init__(self, actor_group: "ActorGroup", method_name: str):
      self.actor_group = weakref.ref(actor_group)
      self._method_name = method_name
  
imports: import weakref
  from dataclasses import dataclass
  import logging
  from typing import List, TypeVar, Optional, Dict, Type, Tuple
  import ray
  from ray.actor import ActorHandle
  from ray.util.annotations import Deprecated
  from ray._private.utils import get_ray_doc_version
label_desc: Use image node_id 1 to create a new ActorGroupMethod object  with example: obj = ActorGroupMethod(actor_group, method_name)