code: def pandas_df_to_hdf5(
      df: pd.DataFrame,
      out_path: Union[str, Path],
      key: str = "interactions",
  ) -> None:
      """Append a Pandas DataFrame to HDF5 using a ``table`` format and ``blosc`` compression."""
      df.to_hdf(
          str(out_path),
          key=key,
          mode="a",
          append=True,
          format="table",
          complib="blosc",
      )
  
imports: from datetime import datetime
  import inspect
  from pathlib import Path
  import re
  import time
  from typing import Any, Dict, Iterable, List, Optional, Union
  import docstring_parser
  import numpy
  import pandas
  import pytorch_lightning
  from scipy.sparse import coo_matrix
  import torch
  from collie.interactions import Interactions
label_desc: Use image node_id 10 for calling a global function with example usage: pandas_df_to_hdf5(df, out_path, key) without return types