code: def hadoop_stat(path: str) -> Dict[str, Any]:
      """Returns information about the file or directory at a given path.
  
      Notes
      -----
      Raises an error if `path` does not exist.
  
      The resulting dictionary contains the following data:
  
      - is_dir (:obj:`bool`) -- Path is a directory.
      - size_bytes (:obj:`int`) -- Size in bytes.
      - size (:class:`str`) -- Size as a readable string.
      - modification_time (:class:`str`) -- Time of last file modification.
      - owner (:class:`str`) -- Owner.
      - path (:class:`str`) -- Path.
  
      Parameters
      ----------
      path : :class:`str`
  
      Returns
      -------
      :obj:`dict`
      """
      return Env.fs().stat(path).to_legacy_dict()
  
file_path: hail/hail/python/hail/utils/hadoop_utils.py
imports: import gzip
  import io
  import os.path
  import sys
  from typing import Any, Dict, List
  from hail.fs.hadoop_fs import HadoopFS
  from hail.utils import local_path_uri
  from hail.utils.java import Env, info
  from hail.typecheck import typecheck, enumeration
label_desc: Use image node_id 6 for calling a global function with example usage: hadoop_stat(path) and returns: Env