def test_check_if_return_is_sample(expected, map_fcn_return_value):
    """Test that check_if_return_is_sample returns False for a non-sample
    object."""
    sample_collection = mock.Mock()
    map_fcn = mock.Mock(return_value=map_fcn_return_value)

    result = fomm.check_if_return_is_sample(sample_collection, map_fcn)

    assert result is expected
Test that check_if_return_is_sample returns False for a non-sample
    object.
tests/unittests/map/test_mapper.py