Python API
has_environment()
Check if the environment variables used by the βenv://β initialization method are set.
This is determined by checking if the MASTER_PORT environment variable is set.