docs: def decommissioning(network, session, args, **kwargs):
      """
      Function that removes components in a decommissioning-scenario from
      the existing network container.
      Currently, only lines can be decommissioned.
                 
      All components of the decommissioning scenario need to be inserted in
      the fitting 'model_draft.ego_grid_pf_hv_extension_' table. 
      The scn_name in the tables have to be labled with 'decommissioning_' 
      + scn_name (e.g. 'decommissioning_nep2035'). 
          
      
      Parameters
      -----
          network : The existing network container (e.g. scenario 'NEP 2035')
          session : session-data
          overlay_scn_name : Name of the decommissioning scenario
  
  
      Returns
      ------
          network : Network container including decommissioning
            
      """  
  
      if args['gridversion'] == None:   
          ormclass = getattr(import_module('egoio.db_tables.model_draft'),
                             'EgoGridPfHvExtensionLine')
      else:
          ormclass = getattr(import_module('egoio.db_tables.grid'),
                             'EgoPfHvExtensionLine')
  
      query = session.query(ormclass).filter(
                          ormclass.scn_name == 'decommissioning_' + 
                          args['scn_decommissioning'])
  
      df_decommisionning = pd.read_sql(query.statement,
                           session.bind,
                           index_col='line_id')
      df_decommisionning.index = df_decommisionning.index.astype(str)
  
      for idx, row in network.lines.iterrows():
          if (row['s_nom_min'] !=0) & (
              row['scn_name'] =='extension_' + args['scn_decommissioning']):
                  v_nom_dec = df_decommisionning['v_nom'][(
                   df_decommisionning.project == row['project']) & (
                           df_decommisionning.project_id == row['project_id'])]
  
                  if (v_nom_dec == 110).any():
                      network.lines.s_nom_min[network.lines.index == idx]\
                      = args['branch_capacity_factor']['HV'] *\
                      network.lines.s_nom_min
  
                  else:
                      network.lines.s_nom_min[network.lines.index == idx] =\
                      args['branch_capacity_factor']['eHV'] *\
                      network.lines.s_nom_min
  
      ### Drop decommissioning-lines from existing network
      network.lines = network.lines[~network.lines.index.isin(
              df_decommisionning.index)]
  
      return network