def METHOD_NAME(x, k=3):
    """Shannon's Self joint entropy with k as the length of k-history"""
    z = complexity_embedding(x, dimension=int(k), delay=1)
    _, freq = np.unique(z, return_counts=True, axis=0)
    freq = freq / freq.sum()
    return entropy_shannon(freq=freq, base=2)[0]