def METHOD_NAME(self):
    if str(self.metadata.get('ss_base_model_version', "")).startswith("sdxl_"):
        return SdVersion.SDXL
    elif str(self.metadata.get('ss_v2', "")) == "True":
        return SdVersion.SD2
    elif len(self.metadata):
        return SdVersion.SD1
    return SdVersion.Unknown