def METHOD_NAME(self):
    if _CPM_PRESENT:
        with open(LocalPackIndex, "w+") as out:
            self._cache.index["version"] = "0.2.0"
            dump(self._cache.index, out, indent=4, sort_keys=True)
    else:
        print(
            'The Python package "cmsis-pack-manager" is not installed. '
            'To generate a CMSIS Pack index, please install this package with '
            '"pip install cmsis-pack-manager".'
        )