code: def export_to_csv_folder(network, csv_folder_name, encoding=None, export_standard_types=False):
      
  
      basename = os.path.basename(csv_folder_name)
      with ExporterCSV(csv_folder_name=csv_folder_name, encoding=encoding) as exporter:
          _export_to_exporter(network, exporter, basename=basename,
                              export_standard_types=export_standard_types)
docs: Export network and components to a folder of CSVs.
  
      Both static and series attributes of components are exported, but only
      if they have non-default values.
  
      If csv_folder_name does not already exist, it is created.
  
      Parameters
      ----------
      csv_folder_name : string
          Name of folder to which to export.
      encoding : str, default None
          Encoding to use for UTF when reading (ex. 'utf-8'). `List of Python
          standard encodings
          <https://docs.python.org/3/library/codecs.html#standard-encodings>`_
      export_standard_types : boolean, default False
          If True, then standard types are exported too (upon reimporting you
          should then set "ignore_standard_types" when initialising the netowrk).
  
      Examples
      --------
      >>> export_to_csv(network,csv_folder_name)
      OR
      >>> network.export_to_csv(csv_folder_name)