def METHOD_NAME(self) -> None:
    """Generate a value that can be used for comparison"""
    if self._compare_value is not None:
        return
    if self.value is None:
        self._compare_value = ""
    elif isinstance(self.value, (dict, list)):
        self._compare_value = json.dumps(self.value, indent=4, sort_keys=True)
    else:
        self._compare_value = str(self.value)