def go():

    class _Tool(Template):

        help = \
            '''
                Dumps the internal ochopod log for the specified cluster(s).
            '''

        tag = 'log'

        def customize(self, parser):

            parser.add_argument('clusters', type=str, nargs='*', default='*', help='1+ clusters (can be a glob pattern, e.g foo*)')

        def body(self, args, proxy):

            for token in args.clusters:

                def _query(zk):
                    return fire(zk, token, 'log')

                js = run(proxy, _query)
                for pod in sorted(js.keys()):
                    _, log, code = js[pod]
                    if code is 200:
                        logger.info('\n%s ->\n\n- %s' % (pod, '- '.join(log[-64:])))

    return _Tool()
dataset/ETHPy150Open autodesk-cloud/ochonetes/images/portal/resources/toolset/toolset/commands/log.py/go/operator `==` -> `is`