this is not correct. You should never check for the context.
Instead you should check for: `if ("openg" in sys.capabilities)`
And also, use the `create` API, and not the `init` API which is confusing for the users.