code: def changedFilesBetween(baseName, branchName, commitHash):
      """
      Returns a list of files changed between branches baseName and latest commit
      of branchName.
      """
      current = branch()
      # checkout "base" branch
      __git("checkout", "--force", baseName)
      # checkout branch for comparing
      __git("checkout", "--force", branchName)
      # checkout latest commit from branch
      __git("checkout", "-fq", commitHash)
  
      files = __gitdiff(
          "--name-only",
          "--ignore-submodules",
          f"{baseName}..{branchName}",
      )
  
      # restore the original branch
      __git("checkout", "--force", current)
      return files.splitlines()
  
file_path: cugraph/ci/utils/git_helpers.py
imports: import subprocess
  import os
  import re
label_desc: Use image node_id 6 for calling a global function with example usage: changedFilesBetween(baseName, branchName, commitHash) and returns: files