code: def test_label_visibility_set_to_collapse(
      themed_app: Page, assert_snapshot: ImageCompareFunction
  ):
      expect(
          themed_app.locator("[data-testid='stMetricLabel']").nth(5)
      ).to_have_text("Test 5")
      assert_snapshot(
          themed_app.locator('[data-testid="stMetric"]').nth(5),
          name="metric-label-collapse",
      )
  
file_path: streamlit/e2e_playwright/st_metric_test.py
imports: from playwright.sync_api import Page, expect
  from e2e_playwright.conftest import ImageCompareFunction
label_desc: Use image node_id 10 for calling a global function with example usage: test_label_visibility_set_to_collapse(themed_app, assert_snapshot) without return types