def bytes_to_text(inbytes):
    """
    (bytes, str) -> (str)

    Formats a bytes sequence as a string. Each byte is separated
    by a space (by default, the separator could be specified as an argument).
    :param inbytes: byte sequence to be represented as a string.
    :param sep: string to be used as a separator.
    :return: string representation of the bytes.
    """
    ret_hex = ""
    if inbytes is not None:
        ret_hex = inbytes.hex().upper()
    return ret_hex