code: def compute_actor_handle_id(actor_handle_id, num_forks):
      
      assert isinstance(actor_handle_id, ActorHandleID)
      handle_id_hash = hashlib.sha1()
      handle_id_hash.update(actor_handle_id.binary())
      handle_id_hash.update(str(num_forks).encode("ascii"))
      handle_id = handle_id_hash.digest()
      return ActorHandleID(handle_id)
docs: Deterministically compute an actor handle ID.
  
      A new actor handle ID is generated when it is forked from another actor
      handle. The new handle ID is computed as hash(old_handle_id || num_forks).
  
      Args:
          actor_handle_id (common.ObjectID): The original actor handle ID.
          num_forks: The number of times the original actor handle has been
                     forked so far.
  
      Returns:
          An ID for the new actor handle.