code: def v1File_from_local_dir(
      archive_path: str, path: pathlib.Path
  ) -> bindings.v1File:
      st = path.stat()
      return bindings.v1File(
          path=archive_path,
          type=ord(tarfile.DIRTYPE),
          content="",
          # Protobuf expects string-encoded int64
          mtime=str(int(st.st_mtime)),
          mode=st.st_mode,
          uid=0,
          gid=0,
      )
  
file_path: determined/harness/determined/common/v1file_utils.py
imports: import base64
  import pathlib
  import tarfile
  from typing import Any, Dict
  from determined.common.api import bindings
label_desc: Use image node_id 4 for calling a global function with example usage: v1File_from_local_dir(archive_path, path) and returns: bindings