'Utility function to get Tensorboard URL'

def tensorboard_url(self):

    tb_url = None
    for node in self.cluster_info:
        if (node['tb_port'] != 0):
            tb_url = 'http://{0}:{1}'.format(node['host'], node['tb_port'])
    return tb_url
