code: def _listdir(dirname, dir_fd, dironly):
      with contextlib.closing(_iterdir(dirname, dir_fd, dironly)) as it:
          return list(it)
  
imports: import contextlib
  import os
  import re
  import fnmatch
  import itertools
  import stat
  import sys
label_desc: Use image node_id 10 for calling a global function with example usage: _listdir(dirname, dir_fd, dironly) and returns: list