code: def is_directory(dirname):
      """Returns whether the path is a directory or not.
  
      Args:
        dirname: string, path to a potential directory
  
      Returns:
        True, if the path is a directory; False otherwise
      """
      return is_directory_v2(dirname)
  
imports: import binascii
  import os
  from posixpath import join
  import uuid
  import six
  from tensorflow.python.framework import errors
  from tensorflow.python.lib.io import _pywrap_file_io
  from tensorflow.python.util import compat
  from tensorflow.python.util import deprecation
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 20 for calling a global function with example usage: is_directory(dirname) and returns: is_directory_v2