code: def get_project_config(
      self, name: Optional[str] = None
  ) -> Optional[ProjectConfig]:
      for project in self.config.projects:
          if name is None and project.default:
              return project
          if project.name == name:
              return project
      return None
  
imports: import json
  import os.path
  from pathlib import Path
  from typing import Optional
  import filelock
  import yaml
  from pydantic import ValidationError
  from rich import print
  from rich.prompt import Confirm
  from dstack._internal.cli.utils.common import colors, confirm_ask
  from dstack._internal.core.models.config import GlobalConfig, ProjectConfig, RepoConfig
  from dstack._internal.core.models.repos.base import RepoType
  from dstack._internal.utils.common import get_dstack_dir
  from dstack._internal.utils.path import PathLike
label_desc: Use image node_id 4 for calling the ConfigManager obj's underlying member method code with example usage: obj.get_project_config(name) and returns: None, project, project