code: def kernels_status_cli(self, kernel, kernel_opt=None):
          
          kernel = kernel or kernel_opt
          response = self.kernels_status(kernel)
          status = response['status']
          message = response['failureMessage']
          if message:
              print('%s has status "%s"' % (kernel, status))
              print('Failure message: "%s"' % message)
          else:
              print('%s has status "%s"' % (kernel, status))
docs: client wrapper for kernel_status
               Parameters
              ==========
              kernel_opt: additional option from the client, if kernel not defined