def assert_valid_path(self, path):
if not isinstance(path, str):<EOL><INDENT>raise NotFoundResourceException(<EOL>"<STR_LIT>")<EOL><DEDENT>if not os.path.isfile(path):<EOL><INDENT>raise NotFoundResourceException(<EOL>'<STR_LIT>'.format(path))<EOL><DEDENT>
Ensures that the path represents an existing file

@type path: str
@param path: path to check