code: def resolve_includes(source):
      d = os.path.dirname(source)
      fid = open(source)
      lines = []
      for line in fid:
          m = include_src_re.match(line)
          if m:
              fn = m.group("name")
              if not os.path.isabs(fn):
                  fn = os.path.join(d, fn)
              if os.path.isfile(fn):
                  print("Including file", fn)
                  lines.extend(resolve_includes(fn))
              else:
                  lines.append(line)
          else:
              lines.append(line)
      fid.close()
      return lines
  
file_path: catboost/contrib/python/numpy/py2/numpy/distutils/from_template.py
imports: from __future__ import division, absolute_import, print_function
  import os
  import sys
  import re
label_desc: Use image node_id 8 for calling a global function with example usage: resolve_includes(source) and returns: lines