def _assert_sample_names(expected_names, observed_samples):
assert all(map(lambda s: isinstance(s, Sample), observed_samples))<EOL>assert set(expected_names) == {s.name for s in observed_samples}<EOL>
Make equality assertions on Sample name and type.

:param Iterable[str] expected_names: collection of expected Sample names
:param Iterable[Sample] observed_samples: collection of observed Sample
    object instances