code: def trial_ls(args):
      '''List trial'''
      nni_config = Config(get_config_filename(args))
      rest_port = nni_config.get_config('restServerPort')
      rest_pid = nni_config.get_config('restServerPid')
      if not detect_process(rest_pid):
          print_error('Experiment is not running...')
          return
      running, response = check_rest_server_quick(rest_port)
      if running:
          response = rest_get(trial_jobs_url(rest_port), REST_TIME_OUT)
          if response and check_response(response):
              content = json.loads(response.text)
              for index, value in enumerate(content):
                  content[index] = convert_time_stamp_to_date(value)
              print(json.dumps(content, indent=4, sort_keys=True, separators=(',', ':')))
          else:
              print_error('List trial failed...')
      else:
          print_error('Restful server is not running...'f trial_ls(args):
      '''List trial'''
      nni_config = Config(get_config_filename(args))
      rest_port = nni_config.get_config('restServerPort')
      rest_pid = nni_config.get_config('restServerPid')
      if not detect_process(rest_pid):
          print_error('Experiment is not running...')
          return
      running, response = check_rest_server_quick(rest_port)
      if running:
          response = rest_get(trial_jobs_url(rest_port), REST_TIME_OUT)
          if response and check_response(response):
              content = json.loads(response.text)
              for index, value in enumerate(content):
                  content[index] = convert_time_stamp_to_date(value)
              print(json.dumps(content, indent=4, sort_keys=True, separators=(',', ':')))
          else:
              print_error('List trial failed...')
      else:
          print_error('Restful server is not running...')
docs: List trial