def _in_gce_environment():
if SETTINGS.env_name is not None:<EOL><INDENT>return SETTINGS.env_name == '<STR_LIT>'<EOL><DEDENT>if NO_GCE_CHECK != '<STR_LIT:True>' and _detect_gce_environment():<EOL><INDENT>SETTINGS.env_name = '<STR_LIT>'<EOL>return True<EOL><DEDENT>return False<EOL>
Detect if the code is running in the Compute Engine environment.

    Returns:
        True if running in the GCE environment, False otherwise.