def get_item_len(self, data, **kwargs):
        """
        Get the max_item_id parameter
        :param kwargs:
        :return:
        """
        try:
            return self._max_item_id or kwargs["max_item_id"]
        except __HOLE__:
            return len(set([row["item"] for _, row in data.iterrows()]))
dataset/ETHPy150Open grafos-ml/test.fm/src/testfm/okapi/connector.py/BaseOkapiModel.get_item_len