def METHOD_NAME(self):
    super().METHOD_NAME()
    if not self.options.get("path") and not self.options.get("apex"):
        raise TaskOptionsError(
            "You must specify either the `path` or `apex` option."
        )