code: def getFileWithExtension(path: str, ext: str) -> Optional[str]:
      """
      Returns a single file in the given path with the given extension
      """
      # get all files in directory with extension
      files = listFilesWithExtension(path, ext)
      if len(files) == 0:
          return None
      # filter out files with grp in their name
      files = [f for f in files if "__grp__" not in f]
      if len(files) != 1:
          print(
              f"Found {len(files)} files in {path} with extension {ext}!"
          )
          sys.exit(2)
      return files[0]
  
imports: import argparse
  import difflib
  import glob
  import os
  import sys
  from typing import Dict, List, Optional, Tuple
  import yaml
label_desc: Use image node_id 2 for calling a global function with example usage: getFileWithExtension(path, ext) and returns: files, None