code: def check_platform_type(platform_type: TestPlatform) -> None:
      if platform_type in [TestPlatform.OSS, TestPlatform.FBCODE]:
          return
      raise Exception(
          f"Can't parse platform type: {platform_type}.",
          " Please set environment variable COMPILER_TYPE as OSS or FBCODE",
      )
  
imports: import os
  import shutil
  import sys
  import time
  from typing import Any, NoReturn, Optional
  from .setting import CompilerType, LOG_DIR, PROFILE_DIR, TestList, TestPlatform, TestType
label_desc: Use image node_id 16 for calling a global function with example usage: check_platform_type(platform_type) without return types