def dump(data: bytes, separator: str = " ", with_length: bool = True) -> str:
    """Provide a human readable representation of a bytes object.

    Arguments:
        data: The data to represent
        separator: the separator character(s) between the bytes. Defaults to " ".
        with_length: indication, if the length shall be appended in brackets.

    Returns:
        A human readable string, with a blank between each byte, and the length
        of the string appended in brackets.
    """

    ret = separator.join(f"{y:02x}" for y in data)
    if with_length:
        ret = ret + f" ({len(data)})"

    return ret