code: def fetch_dir_from_node(
      node_ip: str,
      remote_dir: str,
      local_dir: str,
  ):
      import ray
  
      try:
          packed = ray.get(
              ray.remote(resources={f"node:{node_ip}": 0.01})(
                  _pack
              ).remote(remote_dir)
          )
          _unpack(packed, local_dir)
      except Exception as e:
          print(
              f"Warning: Could not fetch remote directory contents. Message: {str(e)}"
          )
  
file_path: ray/release/ray_release/file_manager/remote_task.py
imports: import io
  import tarfile
  from typing import Optional
  from ray_release.file_manager.file_manager import FileManager
label_desc: Use image node_id 4 for calling a global function with example usage: fetch_dir_from_node(node_ip, remote_dir, local_dir) without return types