code: def check_rest(args):
      '''check if restful server is running'''
      nni_config = Config(get_config_filename(args))
      rest_port = nni_config.get_config('restServerPort')
      running, _ = check_rest_server_quick(rest_port)
      if not running:
          print_normal('Restful server is running...')
      else:
          print_normal('Restful server is not running...'f check_rest(args):
      '''check if restful server is running'''
      nni_config = Config(get_config_filename(args))
      rest_port = nni_config.get_config('restServerPort')
      running, _ = check_rest_server_quick(rest_port)
      if not running:
          print_normal('Restful server is running...')
      else:
          print_normal('Restful server is not running...')
docs: check if restful server is running