def get_model_names(self, names=None):
    names_real = list(self._models.keys())
    if (names is not None):
        names = tolist_if_not(names)
        for name in names:
            assert (name in names_real)
        return names
    else:
        return names_real
def get_model_names(self, names=None):
    names_real = list(self._models.keys())
    if (names is not None):
        names = tolist_if_not(names)
        for name in names:
            assert (name in names_real)
        return names
    else:
        return names_real