code: def download_h5(run_id, entity=None, project=None, out_dir=None):
      api = Api()
      meta = api.download_url(
          project or api.settings("project"),
          DEEP_SUMMARY_FNAME,
          entity=entity or api.settings("entity"),
          run=run_id,
      )
      if meta and "md5" in meta and meta["md5"] is not None:
          # TODO: make this non-blocking
          wandb.termlog("Downloading summary data...")
          path, res = api.download_write_file(meta, out_dir=out_dir)
          return path
  
imports: import json
  import os
  import time
  from wandb_gql import gql
  import wandb
  from wandb import util
  from wandb.apis.internal import Api
  from wandb.sdk import lib
  from wandb.sdk.data_types.utils import val_to_json
label_desc: Use image node_id 1 for calling a global function with example usage: download_h5(run_id, entity, project, out_dir) and returns: path