def model(model_dense, model_sparse, sparse):  # pylint: disable=redefined-outer-name
    """Fixture to get a tight-binding model, both sparse and dense."""
    if sparse:
        return model_sparse
    return model_dense