code: def dbt_project_dir() -> str:
      """Return the canonical path string for the dbt project dir in the test package.
  
      This is necessary for configuring both the dbt adapter for integration tests and the project location for CLI tests.
      """
      return os.path.join(
          os.path.dirname(__file__),
          Path("dbt_projects", "metricflow_testing"),
      )
  
imports: from __future__ import annotations
  import datetime
  import logging
  import os
  import warnings
  from dataclasses import dataclass
  from pathlib import Path
  import _pytest.config
  import pytest
  import sqlalchemy.util
  from _pytest.fixtures import FixtureRequest
  from sqlalchemy.engine import make_url
  from metricflow.random_id import random_id
  from metricflow.test.fixtures.sql_clients.common_client import SqlDialect
  from metricflow.test.table_snapshot.table_snapshots import SqlTableSnapshotHash, SqlTableSnapshotRepository
label_desc: Use image node_id 6 for calling a global function with example usage: dbt_project_dir() and returns: os