code: def test_has_migrations(files: tuple[str, ...], has_migrations: bool):
      stderr = str(
          SelectiveChecks(
              files=files,
              commit_ref="HEAD",
              github_event=GithubEvents.PULL_REQUEST,
              default_branch="main",
          )
      )
      assert_outputs_are_printed(
          {"has-migrations": str(has_migrations).lower()}, str(stderr)
      )
  
imports: from __future__ import annotations
  import json
  import re
  from functools import lru_cache
  from typing import Any
  import pytest
  from rich.console import Console
  from airflow_breeze.global_constants import BASE_PROVIDERS_COMPATIBILITY_CHECKS, COMMITTERS, DEFAULT_PYTHON_MAJOR_MINOR_VERSION, GithubEvents
  from airflow_breeze.utils.selective_checks import ALL_CI_SELECTIVE_TEST_TYPES, SelectiveChecks
label_desc: Use image node_id 15 for calling a global function with example usage: test_has_migrations(files, has_migrations) without return types