def do_batches(self):
        d = self.sd.get_obj('output_domain')
        if d:
            print 'Available Batches:'
            rs = d.query("['type'='Batch']")
            for item in rs:
                print '  %s' % item.name
        else:
            self.parser.error('No output_domain specified for service')
dataset/ETHPy150Open darcyliu/storyboard/boto/services/bs.py/BS.do_batches/original