def from_hex(hex_data: str, delimiter: str = " ") -> bytes:
    """Converts hexadecimal byte string into bytes object"""
    if delimiter == "":
        data = [hex_data[i:i+2] for i in range(0, len(hex_data), 2)]
    else:
        data = hex_data.split(delimiter)
    data = [int(byte, 16) for byte in data]
    return bytes(data)