def _model_fit_function(self):
    if self.nested:
        return gt.minimize_nested_blockmodel_dl
    else:
        return gt.minimize_blockmodel_dl
def _model_fit_function(self):
    if self.nested:
        return gt.minimize_nested_blockmodel_dl
    else:
        return gt.minimize_blockmodel_dl