def print_worker_details(worker):
    print 'Worker'
    if has_str_format:
        print ' {0:9}: {1}'.format('wrk_id', worker['wrk_id'])
        try:
            print ' {0:9}: {1}'.format('command', worker['command'].encode('utf-8'))
        except UnicodeDecodeError:
            print ' {0:9}: {1}'.format('command', worker['command'])
        print ' {0:9}: {1}'.format('params', worker['params'])
        print ' {0:9}: {1}'.format('size', worker['size'])
        print ' {0:9}: {1}'.format('created', worker['date_created'])
    else:
        print ' %-9ls: %s' % ('wrk_id', worker['wrk_id'])
        print ' %-9ls: %s' % ('command', worker['command'])
        print ' %-9ls: %s' % ('params', worker['params'])
        print ' %-9ls: %s' % ('size', worker['size'])
        print ' %-9ls: %s' % ('created', worker['date_created'])
dataset/ETHPy150Open cloudControl/cctrl/cctrl/output.py/print_worker_details/original