code: def detect_platforms():
      commands = ["gcloud", "aws"]
      platforms = ["gcp", "aws"]
      found_platforms = []
  
      for i, cmd in enumerate(commands):
          try:
              sp.check_call(["which", cmd], stdout=sp.DEVNULL)
          except sp.CalledProcessError:
              continue
  
          found_platforms.append(platforms[i])
  
      return found_platforms
  
imports: import os
  import json
  import subprocess
  from pathlib import Path
  import click
  import fiber
  import fiber.core
  from fiber.core import ProcessStatus
label_desc: Use image node_id 7 for calling a global function with example usage: detect_platforms() and returns: found_platforms