code: def test_default_properties(experiment_analysis):
      # The last trial has the highest score (according to the default metric/mode).
      best_trial = _get_trial_with_id(
          experiment_analysis.trials, NUM_TRIALS
      )
      assert experiment_analysis.best_trial == best_trial
      assert experiment_analysis.best_config == best_trial.config
      # The last (most recent) checkpoint has the highest score.
      assert (
          experiment_analysis.best_checkpoint == best_trial.checkpoint
      )
      # NaN != NaN, so fill them in for this equality check.
      assert experiment_analysis.best_dataframe.fillna(-1).equals(
          experiment_analysis.trial_dataframes[
              best_trial.trial_id
          ].fillna(-1)
      )
      assert experiment_analysis.best_result == best_trial.last_result
  
      result_df_dict = experiment_analysis.best_result_df.iloc[
          0
      ].to_dict()
      # Converting -> pandas -> dict flattens the dict.
      best_trial_dict = flatten_dict(
          best_trial.last_result, delimiter="/"
      )
      assert result_df_dict["ascending"] == best_trial_dict["ascending"]
  
      assert len(experiment_analysis.results) == NUM_TRIALS
      assert len(experiment_analysis.results_df) == NUM_TRIALS
  
imports: from contextlib import contextmanager
  import tempfile
  import os
  from pathlib import Path
  import pickle
  import pandas
  import numpy
  from typing import List
  import pytest
  from ray import train, tune
  from ray.air._internal.uri_utils import URI
  from ray.air.constants import EXPR_PROGRESS_FILE, EXPR_RESULT_FILE
  from ray.train._internal.storage import _delete_fs_path
  from ray.tune.analysis.experiment_analysis import ExperimentAnalysis
  from ray.tune.experiment import Trial
  from ray.tune.utils import flatten_dict
  from ray.train.tests.util import create_dict_checkpoint, load_dict_checkpoint
  from ray.train.tests.test_new_persistence import mock_s3_bucket_uri
label_desc: Use image node_id 9 for calling a global function with example usage: test_default_properties(experiment_analysis) without return types