code: def extract_project_id(m: Dict[str, Any]) -> str:
      """Attempts to extract the project_id from the args; falls back to an
      environment variable, or exits if this isn't available. There's no sensible
      default available.
  
      """
      project_id = m.get("project_id") or os.environ.get("PROJECT_ID")
  
      if project_id is None:
          print()
          print(
              "\nNo project_id found. 'caliban cloud' requires that you either set a \n\
  $PROJECT_ID environment variable with the ID of your Cloud project, or pass one \n\
  explicitly via --project_id. Try again, please!"
          )
          print()
  
          sys.exit(1)
  
      return project_id
  
imports: import os
  import sys
  from enum import Enum
  from typing import Any, Dict, List, Optional, Tuple
  import schema
  import caliban.platform.cloud.types
  import caliban.util.schema
label_desc: Use image node_id 5 for calling a global function with example usage: extract_project_id(m) and returns: project_id