code: def export_to_hdf5(network, path, export_standard_types=False, **kwargs):
      
  
      kwargs.setdefault('complevel', 4)
  
      basename = os.path.basename(path)
      with ExporterHDF5(path, **kwargs) as exporter:
          _export_to_exporter(network, exporter, basename=basename,
                              export_standard_types=export_standard_types)
docs: Export network and components to an HDF store.
  
      Both static and series attributes of components are exported, but only
      if they have non-default values.
  
      If path does not already exist, it is created.
  
      Parameters
      ----------
      path : string
          Name of hdf5 file to which to export (if it exists, it is overwritten)
      **kwargs
          Extra arguments for pd.HDFStore to specify f.i. compression
          (default: complevel=4)
  
      Examples
      --------
      >>> export_to_hdf5(network, filename)
      OR
      >>> network.export_to_hdf5(filename)