code: def convert_to_relative_path(whole_path: str, base_path: str) -> str:
      # ("profile/raw", "profile") -> "raw"
      if base_path not in whole_path:
          raise RuntimeError(base_path + " is not in " + whole_path)
      return whole_path[len(base_path) + 1 :]
  
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 9 for calling a global function with example usage: convert_to_relative_path(whole_path, base_path) and returns: whole_path