code: def _glob2(dirname, pattern, dir_fd, dironly, include_hidden=False):
      assert _isrecursive(pattern)
      yield pattern[:0]
      yield from _rlistdir(
          dirname, dir_fd, dironly, include_hidden=include_hidden
      )
  
imports: import contextlib
  import os
  import re
  import fnmatch
  import itertools
  import stat
  import sys
label_desc: Use image node_id 8 for calling a global function with example usage: _glob2(dirname, pattern, dir_fd, dironly, include_hidden) without return types