code: def _isdir(pathname, dir_fd):
      # Same as os.path.isdir(), but with dir_fd
      if dir_fd is None:
          return os.path.isdir(pathname)
      try:
          st = os.stat(pathname, dir_fd=dir_fd)
      except (OSError, ValueError):
          return False
      else:
          return stat.S_ISDIR(st.st_mode)
  
imports: import contextlib
  import os
  import re
  import fnmatch
  import itertools
  import stat
  import sys
label_desc: Use image node_id 13 for calling a global function with example usage: _isdir(pathname, dir_fd) and returns: os, stat, False