def pack_any(message: Message) -> any_pb2.Any:
    """Packs a message into an Any proto.

    Returns the packed Any proto.
    """
    packed = any_pb2.Any()
    packed.Pack(message)
    return packed
Packs a message into an Any proto.

    Returns the packed Any proto.
    
cirq-google/cirq_google/engine/util.py