code: def _is_dir(path, subdir=None):
      if subdir:
          path = os.path.join(path, subdir)
      return os.path.isdir(path)
  
imports: import fnmatch
  import logging
  import re
  import os
  from guild import cli
  from guild import run_manifest
  from guild import util
  from .None import remote_impl_support
  from .None import runs_impl
label_desc: Use image node_id 20 for calling a global function with example usage: _is_dir(path, subdir) and returns: os