code: def test_result_repr(ray_start_2_cpus):
      def f(config):
          train.report({"loss": 1})
  
      tuner = tune.Tuner(f, param_space={"x": tune.grid_search([1, 2])})
      result_grid = tuner.fit()
      result = result_grid[0]
  
      from ray.tune.result import AUTO_RESULT_KEYS
      from ray.tune.experimental.output import BLACKLISTED_KEYS
  
      representation = result.__repr__()
      assert not any(key in representation for key in AUTO_RESULT_KEYS)
      assert not any(key in representation for key in BLACKLISTED_KEYS)
  
file_path: ray/python/ray/tune/tests/test_result_grid.py
imports: import pytest
  import ray
  from ray import train, tune
  from ray.train import Checkpoint, Result
  from ray.tune.result_grid import ResultGrid
  from ray.train.tests.util import create_dict_checkpoint, load_dict_checkpoint
label_desc: Use image node_id 5 for calling a global function with example usage: test_result_repr(ray_start_2_cpus) without return types