def METHOD_NAME(
    files: Union[str, os.PathLike, Sequence[Union[str, os.PathLike]]],
    skip_comments: bool = True,
    root: Union[str, os.PathLike] = TEST_DIR,
):
    """Parametrize test cases from the lines of a series of files.
    Whitespace at the start and end of the lines is stripped from the case.
    Args:
        files: The name of a file or files to draw the test cases from.  Can be
            the output of :obj:`~find_files` with ``raw=True`` to do discovery.
        skip_comments: Whether to skip lines which begin with the line-comment
            sequence "//".
        root: The directory to quote the filenames relative to, when generating
            the test id.
    Returns:
        A sequence of pytest parameters with the individual test cases and their
        ids.  The id is formed of the file name and the line number the case was
        taken from.
    """
    if isinstance(files, (str, os.PathLike)):
        files = (files,)
    root = pathlib.Path(root)
    def output_format(line, filename, line_number):
        relative_filename = pathlib.Path(filename).relative_to(root)
        return pytest.param(
            line,
            id=f"{relative_filename}:{line_number + 1}",
        )
    out = []
    for filename in files:
        with open(filename, "r") as file:
            for line_number, line in enumerate(file):
                line = line.strip()
                if not line or (skip_comments and line.startswith("//")):
                    continue
                out.append(output_format(line, filename, line_number))
    return out