I need to register glabal state to scalar function or table function. but I found that extra_info for register operation is not easy to understand. Can anyone provide some examples to use extra_info in extension to share state or struct. thanks.