def check_base(path, base, os_sep=os.sep):
return (<EOL>check_path(path, base, os_sep) or<EOL>check_under_base(path, base, os_sep)<EOL>)<EOL>
Check if given absolute path is under or given base.

:param path: absolute path
:type path: str
:param base: absolute base path
:type base: str
:param os_sep: path separator, defaults to os.sep
:return: wether path is under given base or not
:rtype: bool