code: def load_hdf5(
      network,
      filepath,
      ignore_missing=False,
      load_by="names_or_order",
      skip_validation=True,
  ):
      """
      Load network parameters from HDF5 file.
  
      Parameters
      ----------
      {load_dict.network}
  
      filepath : str
          Path to HDF5 file that will store network parameters.
  
      {load_dict.ignore_missing}
  
      {load_dict.load_by}
  
      {load_dict.skip_validation}
  
      Raises
      ------
      {load_dict.Raises}
  
      Examples
      --------
      >>> from neupy import layers, storage
      >>>
      >>> network = layers.Input(10) > layers.Softmax(3)
      >>> storage.load_hdf5(network, '/path/to/parameters.hdf5')
      """
      network = extract_network(network)
      data = {}
  
      with h5py.File(filepath, mode="r") as f:
          data["metadata"] = json.loads(f.attrs["metadata"])
          data["graph"] = json.loads(f.attrs["graph"])
          data["layers"] = []
  
          layer_names = json.loads(f.attrs["layer_names"])
  
          for layer_name in layer_names:
              layer_group = f[layer_name]
              layer = {"name": layer_name}
  
              for attrname, attrvalue in layer_group.attrs.items():
                  try:
                      layer[attrname] = json.loads(attrvalue)
                  except ValueError:
                      layer[attrname] = attrvalue
  
              layer["parameters"] = {}
              for param_name, parameter in layer_group.items():
                  layer["parameters"][param_name] = {
                      "value": parameter.value,
                      "trainable": parameter.attrs["trainable"],
                  }
  
              data["layers"].append(layer)
  
      load_dict(network, data, ignore_missing, load_by)
  
imports: import json
  from time import gmtime, strftime
  import six
  import h5py
  import numpy
  import tensorflow
  from six.moves import cPickle
  import neupy
  from neupy.core.docs import shared_docs
  from neupy.layers.graph import LayerGraph
  from neupy.algorithms.base import BaseNetwork
  from neupy.utils import asfloat, tf_utils
label_desc: Use image node_id 11 for calling a global function with example usage: load_hdf5(network, filepath, ignore_missing, load_by, skip_validation) without return types