code: def doFilesMatch(path1: str, path2: str) -> bool:
      """
      Returns True if the files in the given paths match, False otherwise
      The files are considered to match if:
      1. The number of files in both paths match
      2. The json files match
      3. Both paths have a ttir that match, if a ttir does not exist, the ttgir file must exist and match
      """
      filesVec1 = getFileVec(path1)
      filesVec2 = getFileVec(path2)
      # The number of files must match
      if len(filesVec1) != len(filesVec2):
          return False
  
      for (ext1, file1), (ext2, file2) in zip(filesVec1, filesVec2):
          if ext1 != ext2:
              return False
          if not compareFiles(file1, file2):
              return False
          else:
              # once we actually compared a ttir or ttgir file, we can break
              if ext1 in ("ttir", "ttgir"):
                  break
      return True
  
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 8 for calling a global function with example usage: doFilesMatch(path1, path2) and returns: True, False, False, False