code: def get_real_build_root_dir(
      src_root_dir: str, platform_name: str, built_output_root_dir: str
  ):
      if os.environ.get("CMAKE_BUILD_CACHE_DIR"):
          build_native_root_dir = os.path.join(
              os.environ["CMAKE_BUILD_CACHE_DIR"],
              hashlib.md5(
                  os.path.abspath(src_root_dir).encode("utf-8")
              ).hexdigest()[:10],
              platform_name,
          )
          os.makedirs(build_native_root_dir, exist_ok=True)
          return build_native_root_dir
      else:
          return built_output_root_dir
  
imports: import argparse
  import distutils
  import hashlib
  import logging
  import os
  import subprocess
  import sys
  import tarfile
  from typing import List, Tuple
label_desc: Use image node_id 16 for calling a global function with example usage: get_real_build_root_dir(src_root_dir, platform_name, built_output_root_dir) and returns: build_native_root_dir, built_output_root_dir