def METHOD_NAME(data_fmodel, check_isomorphous, sg, ignore_index):
    """
    Test whether attributes of DataSet are preserved through calls to
    pd.concat()
    """
    other = data_fmodel.copy(deep=True)
    other.spacegroup = sg
    if check_isomorphous and sg.number == 19:
        with pytest.raises(ValueError):
            result = rs.concat(
                [data_fmodel, other],
                ignore_index=ignore_index,
                check_isomorphous=check_isomorphous,
            )
    else:
        result = rs.concat(
            [data_fmodel, other],
            ignore_index=ignore_index,
            check_isomorphous=check_isomorphous,
        )
        assert isinstance(result, rs.DataSet)
        assert len(result) == len(data_fmodel) * 2
        if ignore_index:
            assert result._index_dtypes == {}
        for attr in data_fmodel._metadata:
            if attr == "_index_dtypes":
                continue
            assert result.__getattr__(attr) == data_fmodel.__getattr__(attr)