<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def export_to_hdf5(network, path, export_standard_types=False, **kwargs):
 """ 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 -------- OR """


    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)