code: def test_metrics_folder():
      """
      Tests that the default dashboard files get created.
      """
      with _ray_start(include_dashboard=True) as context:
          session_dir = context["session_dir"]
          assert os.path.exists(
              f"{session_dir}/metrics/grafana/provisioning/dashboards/default.yml"
          )
          assert os.path.exists(
              f"{session_dir}/metrics/grafana/dashboards"
              "/default_grafana_dashboard.json"
          )
          assert os.path.exists(
              f"{session_dir}/metrics/grafana/provisioning/datasources/default.yml"
          )
          assert os.path.exists(
              f"{session_dir}/metrics/grafana/grafana.ini"
          )
          assert os.path.exists(
              f"{session_dir}/metrics/prometheus/prometheus.yml"
          )
  
file_path: ray/python/ray/tests/test_metrics_head.py
imports: import json
  import logging
  import os
  import pytest
  import sys
  import tempfile
  from ray.dashboard.modules.metrics.dashboards.default_dashboard_panels import DEFAULT_GRAFANA_PANELS
  from ray.dashboard.modules.metrics.dashboards.serve_dashboard_panels import SERVE_GRAFANA_PANELS
  from ray.tests.conftest import _ray_start
label_desc: Use image node_id 1 for calling a global function with example usage: test_metrics_folder() without return types