code: def changesInFileBetween(file, b1, b2, pathFilter=None):
      """Filters the changed lines to a file between the branches b1 and b2"""
      current = branch()
      __git("checkout", "--quiet", b1)
      __git("checkout", "--quiet", b2)
      diffs = __gitdiff(
          "--ignore-submodules",
          "-w",
          "--minimal",
          "-U0",
          "%s...%s" % (b1, b2),
          "--",
          file,
      )
      __git("checkout", "--quiet", current)
      lines = []
      for line in diffs.splitlines():
          if pathFilter is None or pathFilter(line):
              lines.append(line)
      return lines
  
file_path: cugraph/ci/utils/git_helpers.py
imports: import subprocess
  import os
  import re
label_desc: Use image node_id 7 for calling a global function with example usage: changesInFileBetween(file, b1, b2, pathFilter) and returns: lines