code: def get_run_spec(
      run_name: str,
      repo_id: str,
      profile: Optional[Profile] = Profile(name="default"),
  ) -> RunSpec:
      return RunSpec(
          run_name=run_name,
          repo_id=repo_id,
          repo_data=LocalRunRepoData(repo_dir="/"),
          repo_code_hash=None,
          working_dir=".",
          configuration_path="dstack.yaml",
          configuration=DevEnvironmentConfiguration(ide="vscode"),
          profile=profile,
          ssh_key_pub="",
      )
  
file_path: dstack/src/dstack/_internal/server/testing/common.py
imports: import json
  import uuid
  from datetime import datetime, timezone
  from typing import Dict, Optional
  from uuid import UUID
  from sqlalchemy.ext.asyncio import AsyncSession
  from dstack._internal.core.models.backends.base import BackendType
  from dstack._internal.core.models.configurations import DevEnvironmentConfiguration
  from dstack._internal.core.models.instances import InstanceType, Resources
  from dstack._internal.core.models.profiles import Profile, SpotPolicy
  from dstack._internal.core.models.repos.base import RepoType
  from dstack._internal.core.models.repos.local import LocalRunRepoData
  from dstack._internal.core.models.runs import JobErrorCode, JobProvisioningData, JobSpec, JobStatus, Requirements, RetryPolicy, RunSpec
  from dstack._internal.core.models.users import GlobalRole
  from dstack._internal.server.models import BackendModel, GatewayComputeModel, GatewayModel, JobModel, ProjectModel, RepoModel, RunModel, UserModel
  from dstack._internal.server.services.jobs import get_job_specs_from_run_spec
label_desc: Use image node_id 2 for calling a global function with example usage: get_run_spec(run_name, repo_id, profile) and returns: RunSpec