def _objlab2cat(self, label, scen, run):
        """Mapping an object label into its corresponding category label
        based on the scenario."""

        if scen == "nc":
            return core50_data.name2cat[self.labels2names["nc"][run][label][:-1]]
        else:
            return int(label) // 5
Mapping an object label into its corresponding category label
        based on the scenario.
avalanche/benchmarks/datasets/core50/core50.py