def METHOD_NAME(self, func, use_previous_behavior=True, preserves_partitioning=False, **kwargs):
    if use_previous_behavior is True:
        LOGGER.warning(f"please use `applyPartitions` instead of `mapPartitions` "
                       f"if the previous behavior was expected. "
                       f"The previous behavior will not work in future")
        return self.applyPartitions(func)
    return Table(self._rp.map_partitions(func, options={"shuffle": not preserves_partitioning}))