code: def _build_cmdtuple(path, cmdtuples):
      """Helper for remove_tree()."""
      for f in os.listdir(path):
          real_f = os.path.join(path, f)
          if os.path.isdir(real_f) and not os.path.islink(real_f):
              _build_cmdtuple(real_f, cmdtuples)
          else:
              cmdtuples.append((os.remove, real_f))
      cmdtuples.append((os.rmdir, path))
  
file_path: catboost/contrib/tools/python3/src/Lib/distutils/dir_util.py
imports: import os
  import errno
  from distutils.errors import DistutilsFileError, DistutilsInternalError
  from distutils import log
label_desc: Use image node_id 4 for calling a global function with example usage: _build_cmdtuple(path, cmdtuples) without return types