def METHOD_NAME(
    *paths: str | Path,
    schema_version: Optional[str] = None,
    devel_debug: bool = False,
    allow_any_path: bool = False,
) -> Iterator[ValidationResult]:
    """Validate content
    Parameters
    ----------
    paths: list(str)
      Could be individual (.nwb) files or a single dandiset path.
    Yields
    ------
    path, errors
      errors for a path
    """
    for p in paths:
        p = os.path.abspath(p)
        dandiset_path = find_parent_directory_containing(dandiset_metadata_file, p)
        if dandiset_path is None:
            yield ValidationResult(
                id="DANDI.NO_DANDISET_FOUND",
                origin=ValidationOrigin(name="dandi", version=__version__),
                severity=Severity.ERROR,
                scope=Scope.DANDISET,
                path=Path(p),
                message="Path is not inside a Dandiset",
            )
        for df in find_dandi_files(
            p, dandiset_path=dandiset_path, allow_all=allow_any_path
        ):
            yield from df.get_validation_errors(
                schema_version=schema_version, devel_debug=devel_debug
            )