def is_path(path):
if not isinstance(path, str):<EOL><INDENT>return False<EOL><DEDENT>portal_path = get_path(get_portal())<EOL>if not path.startswith(portal_path):<EOL><INDENT>return False<EOL><DEDENT>obj = get_object_by_path(path)<EOL>if obj is None:<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
Checks if the passed in path is a valid Path within the portal

    :param path: The path to check
    :type uid: string
    :return: True if the path is a valid path within the portal
    :rtype: bool