Assert that an instantiated composed sampler exposes correct composite properties and methods.

Parameters:sampler (Composite) – User-made dimod composed sampler.
Raises:AssertionError – If the given sampler does not match the composite API.

See also

Composite for the abstract base class that defines the composite API.

assert_sampler_api to assert that the composed sampler matches the sampler API.