Document the `get_id` function

Change-Id: I55ecd002bcb5ffd08d61e995f400fb347f03079f