code: def submit_job_specs(
      specs: List[JobSpec],
      platform: Platform,
      project_id: Optional[str] = None,
      credentials_path: Optional[str] = None,
  ) -> None:
      """submits a job spec"""
  
      if len(specs) == 0:
          return
  
      if platform == Platform.LOCAL:
          return r.execute_jobs(job_specs=specs)
  
      if platform == Platform.CAIP:
          return cloud.submit_job_specs(
              specs=specs,
              project_id=project_id,
              credentials_path=credentials_path,
              num_specs=len(specs),
          )
  
      if platform == Platform.GKE:
          return gke_cli.submit_job_specs(
              args={
                  "cloud_key": credentials_path,
                  "project_id": project_id,
                  "specs": specs,
              },
          )
  
      return None
  
imports: from typing import List, Optional
  import caliban.platform.cloud.core
  import caliban.platform.gke.cli
  import caliban.platform.run
  from caliban.history.types import JobSpec, Platform
label_desc: Use image node_id 1 for calling a global function with example usage: submit_job_specs(specs, platform, project_id, credentials_path) and returns: None, r, cloud, gke_cli