def METHOD_NAME(self, directories):
    client = local_session(self.session_factory).client('ds')
    def _add_tags(d):
        d['Tags'] = client.list_tags_for_resource(
            ResourceId=d['DirectoryId']).get('Tags', [])
        return d
    return list(map(_add_tags, directories))