code: def replace_extension(filename: str, ext: str) -> str:
      return filename[: filename.rfind(".")] + ext
  
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 10 for calling a global function with example usage: replace_extension(filename, ext) and returns: unknown