def METHOD_NAME(self, version):  # pylint: disable=no-self-use
    """Custom JMESPath `set_preview` function that suffixes preview version"""
    try:
        if preview_versions.get(version, False):
            return version + '(preview)'
        return version
    except (TypeError, ValueError):
        return version