def check_enableusersite():
if hasattr(sys, '<STR_LIT>') and getattr(sys.flags, '<STR_LIT>', False):<EOL><INDENT>return False<EOL><DEDENT>if hasattr(os, "<STR_LIT>") and hasattr(os, "<STR_LIT>"):<EOL><INDENT>if os.geteuid() != os.getuid():<EOL><INDENT>return None<EOL><DEDENT><DEDENT>if hasattr(os, "<STR_LIT>") and hasattr(os, "<STR_LIT>"):<EOL><INDENT>if os.getegid() != os.getgid():<EOL><INDENT>return None<EOL><DEDENT><DEDENT>return True<EOL>
Check if user site directory is safe for inclusion

    The function tests for the command line flag (including environment var),
    process uid/gid equal to effective uid/gid.

    None: Disabled for security reasons
    False: Disabled by user (command line option)
    True: Safe and enabled