def METHOD_NAME(self, read_data: dict[str, t.Any]) -> dict[str, t.Any]:
    """Handle older data formats supported by globus_sdk.tokenstorage
    if the data is not in a known/recognized format, this will error
    otherwise, reshape the data to the current supported format and return it
    """
    format_version = read_data.get("format_version")
    if format_version not in self.supported_versions:
        raise ValueError(
            f"cannot store data using SimpleJSONFileAdapter({self.filename} "
            "existing data file is in an unknown format "
            f"(format_version={format_version})"
        )
    if not isinstance(read_data.get("by_rs"), dict):
        raise ValueError(
            f"cannot store data using SimpleJSONFileAdapter({self.filename} "
            "existing data file is malformed"
        )
    return read_data