Return the id of the object, based on the string returned by image(). For types that do not produce such a value, this method will have undefined results.
x := [1, 2 ,3] write(image(x)) write(get_id(x)) Output: list_5(3) 5