Check whether the OS is Unix-based (Linux or macOS).
True if os.name is "posix".
True
os.name
"posix"
bool
Examples
>>> isinstance(is_unix(), bool) True