def METHOD_NAME(val: Any):
    t_complexity_method = getattr(val, '_t_complexity_', None)
    expected = NotImplemented if t_complexity_method is None else t_complexity_method()
    if expected is NotImplemented or expected is None:
        return
    decomposition = _decompose_once_considering_known_decomposition(val)
    if decomposition is None:
        return
    from_decomposition = t_complexity_protocol.t_complexity(decomposition, fail_quietly=False)
    assert expected == from_decomposition, f'{expected} != {from_decomposition}'