def METHOD_NAME(manifest):
    if not isinstance(manifest, bytes):
        if isinstance(manifest, str):
            manifest = manifest.encode("utf-8")
        else:
            manifest = bytes(manifest, "utf-8")
    result = list()
    contents = split_manifest(manifest)
    for content in contents:
        content = content.replace(b'\t\n', b'\n')
        content = content.strip(b'\t')
        try:
            resource = yaml_load(content)
        # except yaml.composer.ComposerError as e:
        except Exception as e:
            message = "Parse manifest failed: \n{error}\n\nManifest content:\n{content}".format(
                error=e, content=content.decode("utf-8")
            )
            logger.exception(message)
            raise ParseError(message)
        if not resource:
            continue
        result.append(resource)
    return result