def METHOD_NAME(self, snapshot):
    """ The snapshotsIds should be strings and also quoted."""
    snapshot_data = {}
    valid_snapshotids = True
    for node in self.get_snapshot_nodes(snapshot):
        if 'snapshotId' in node and node['snapshotId']:
            snapshot_data[node['snapshotId']] = False
            if not isinstance(node['snapshotId'], str):
                valid_snapshotids = False
        elif 'masterSnapshotId' in node and node['masterSnapshotId']:
            snapshot_data[node['masterSnapshotId']] = False
            if not isinstance(node['masterSnapshotId'], str):
                valid_snapshotids = False
        else:
            logger.error(
                'All snapshot nodes should contain snapshotId or masterSnapshotId attribute with a string value')
            valid_snapshotids = False
            break
    if not valid_snapshotids:
        logger.error('All snapshot Ids should be strings, even numerals should be quoted')
    return snapshot_data, valid_snapshotids