def METHOD_NAME(self):
    granularity = self.params.get('granularity')
    if granularity == 'random':
        blacklist = self.params.objects('granularity_blacklist')
        granularity = backup_utils.generate_log2_value(
            512, 2147483648, 1, blacklist)
    return granularity