docs: def update_pypsa_timeseries(network, loads_to_update=None,
                              generators_to_update=None, storages_to_update=None,
                              timesteps=None):
      """
      Updates load, generator, storage and bus time series in pypsa network.
  
      See functions :func:`update_pypsa_load_timeseries`,
      :func:`update_pypsa_generator_timeseries`,
      :func:`update_pypsa_storage_timeseries`, and
      :func:`update_pypsa_bus_timeseries` for more information.
  
      Parameters
      ----------
      network : Network
          The eDisGo grid topology model overall container
      loads_to_update : :obj:`list`, optional
          List with all loads (of type :class:`~.grid.components.Load`) that need
          to be updated. If None all loads are updated depending on mode. See
          :meth:`~.tools.pypsa_io.to_pypsa` for more information.
      generators_to_update : :obj:`list`, optional
          List with all generators (of type :class:`~.grid.components.Generator`)
          that need to be updated. If None all generators are updated depending
          on mode. See :meth:`~.tools.pypsa_io.to_pypsa` for more information.
      storages_to_update : :obj:`list`, optional
          List with all storages (of type :class:`~.grid.components.Storage`)
          that need to be updated. If None all storages are updated depending on
          mode. See :meth:`~.tools.pypsa_io.to_pypsa` for more information.
      timesteps : :pandas:`pandas.DatetimeIndex<datetimeindex>` or :pandas:`pandas.Timestamp<timestamp>`
          Timesteps specifies which time steps of the load time series to export
          to pypsa representation and use in power flow analysis.
          If None all time steps currently existing in pypsa representation are
          updated. If not None current time steps are overwritten by given
          time steps. Default: None.
  
      """
      update_pypsa_load_timeseries(
          network, loads_to_update=loads_to_update, timesteps=timesteps)
      update_pypsa_generator_timeseries(
          network, generators_to_update=generators_to_update,
          timesteps=timesteps)
      update_pypsa_storage_timeseries(
          network, storages_to_update=storages_to_update, timesteps=timesteps)
      update_pypsa_bus_timeseries(network, timesteps=timesteps)
      # update pypsa snapshots
      if timesteps is None:
          timesteps = network.pypsa.buses_t.v_mag_pu_set.index
      network.pypsa.set_snapshots(timesteps)