def METHOD_NAME(log_group_name=None, region=None):
    cloudwatch_client = boto3.client("logs", region)
    if log_group_name:
        return cloudwatch_client.describe_log_groups(
            logGroupNamePrefix=log_group_name
        )
    else:
        logs = cloudwatch_client.describe_log_groups()
        token = logs.get('nextToken','')
        while token != '':
            response_itr = cloudwatch_client.describe_log_groups(nextToken=token)
            logs['logGroups'].extend(response_itr['logGroups'])
            token = response_itr['nextToken'] if 'nextToken' in response_itr.keys() else ''
    return logs