code: def getDependencies(filename):
      """For a Fortran source file, return a list of routines declared as EXTERNAL
      in it.
      """
      external_pat = re.compile(r"^\s*EXTERNAL\s", re.I)
      routines = []
      with open(filename) as fo:
          for lineno, line in fortranSourceLines(fo):
              m = external_pat.match(line)
              if m:
                  names = line[m.end() :].strip().split(",")
                  names = [n.strip().lower() for n in names]
                  names = [n for n in names if n]
                  routines.extend(names)
      return routines
  
file_path: catboost/contrib/python/numpy/py3/numpy/linalg/lapack_lite/fortran.py
imports: import re
  import itertools
label_desc: Use image node_id 7 for calling a global function with example usage: getDependencies(filename) and returns: routines