When entering an Actor context, exiting it, and then entering it again, the Actor._is_any_instance_initialized flag is not reset. As a result, a warning is logged even though the context should be cleanly re-initialized.
[apify] WARN Repeated Actor initialization detected - this is non-standard usage, proceed with care.
I noticed this when adding support for "Run on Apify" for SDK docs to example-code-runner-py (PR).