code: def to_legacy_dict(self) -> Dict[str, Any]:
      return {
          "path": self.path,
          "owner": self.owner,
          "size_bytes": self.size,
          "size": filesize(self.size),
          "modification_time": self.modification_time,
          "is_dir": self.is_dir(),
      }
  
file_path: hail/hail/python/hailtop/fs/stat_result.py
imports: from enum import Enum, auto
  from typing import Dict, NamedTuple, Optional, Union, Any
  from hailtop.utils.filesize import filesize
label_desc: Use image node_id 2 for calling the FileListEntry obj's underlying member method code with example usage: obj.to_legacy_dict() and returns: dict