def get_trail_by_arn(cloudtrail_client, trail_arn):
    trails = cloudtrail_client.describe_trails()['trailList']
    for trail in trails:
        if trail.get('TrailARN', None) == trail_arn:
            return trail
    raise ValueError('A trail could not be found for %s' % trail_arn)
Suspend the thread until another, previously `spawn`ed thread
dataset/ETHPy150Open aws/aws-cli/awscli/customizations/cloudtrail/utils.py/get_trail_by_arn--crossover with--dataset/ETHPy150Open beetbox/beets/beets/util/bluelet.py/join