def summarize_file(file_path):
    """Summarizes the provided file by some basic measurements.

    Returns:
        A tuple containing how many (bytes, words, lines it contains,
        and what is the maximum character count in one line).

    """
    if file_path is None:
        return

    bytes_ = 0
    words = 0
    lines = 1
    max_line_width = 0
    with open(file_path) as file:
        for line_ in file:
            # enforce string type
            line: str = line_
            if len(line) > max_line_width:
                max_line_width = len(line)
            lines += 1
            words += len(line.split())
            bytes_ += len(line.encode())
    return (bytes_, words, lines, max_line_width)