code: def filter_files_by_extension(
      sources: List[str],
      extension: str,
  ) -> Tuple[List[str], List[str]]:
      sources_selected = []
      sources_others = []
      for src in sources:
          if os.path.splitext(src)[1] == extension:
              sources_selected.append(src)
          else:
              sources_others.append(src)
      return sources_selected, sources_others
  
imports: import json
  import os
  import os.path
  import subprocess
  import sys
  from typing import Any, Dict, List, Tuple
  import setuptools
  import setuptools.command.build_ext
  import cupy_builder
  import cupy_builder.install_build
  from cupy_builder._context import Context
  from cupy_builder._compiler import DeviceCompilerUnix, DeviceCompilerWin32
label_desc: Use image node_id 1 for calling a global function with example usage: filter_files_by_extension(sources, extension) and returns: sources_selected,  sources_others