Get object ids and types from a figure

get_object_refs(fig)

Arguments

fig

a figure object