code: def _git_ls_ignored_legacy(cwd, extended_patterns_file):
      ignored_files = _git_ls_ignored_(
          cwd, extended_patterns_file, directory_flag=False
      )
      ignored_dirs = _git_ls_ignored_(
          cwd, extended_patterns_file, directory_flag=True
      )
      return ignored_files + ignored_dirs
  
imports: import collections
  import logging
  import re
  import os
  import subprocess
  from guild import config
  from guild import file_util
  from guild import util
  from guild.file_util import FileSelectRule
label_desc: Use image node_id 21 for calling a global function with example usage: _git_ls_ignored_legacy(cwd, extended_patterns_file) and returns: unknown