def METHOD_NAME(self, ssid):
    if ssid in self.sourcestamps:
        ssdict = self.sourcestamps[ssid].copy()
        ssdict['ssid'] = ssid
        patchid = ssdict['patchid']
        if patchid:
            ssdict.update(self.patches[patchid])
            ssdict['patchid'] = patchid
        else:
            ssdict['patch_body'] = None
            ssdict['patch_level'] = None
            ssdict['patch_subdir'] = None
            ssdict['patch_author'] = None
            ssdict['patch_comment'] = None
        return ssdict
    else:
        return None