async def METHOD_NAME(subscription_state):
    subscription_state.subscribe({"tp1", "tp2"})
    assert subscription_state.subscription is not None
    subscription_state.unsubscribe()
    assert subscription_state.subscription is None
    # After unsubscribe you can change the type to say pattern.
    subscription_state.subscribe_pattern(re.compile("pattern"))
    subscription_state.subscribe_from_pattern({"tp33"})
    assert subscription_state.subscription is not None