code: def register_ascii_series_io(array_type, format='txt', identify=True,
                               **defaults):
      
      def _read(filepath, **kwargs):
          kwgs = defaults.copy()
          kwgs.update(kwargs)
          return read_ascii_series(filepath, array_type=array_type, **kwgs)
  
      def _write(series, output, **kwargs):
          kwgs = defaults.copy()
          kwgs.update(kwargs)
          return write_ascii_series(series, output, **kwgs)
  
      io_registry.register_reader(format, array_type, _read)
      io_registry.register_writer(format, array_type, _write)
      if identify:
          io_registry.register_identifier(format, array_type,
                                          identify_factory(format))
docs: Register ASCII read/write/identify methods for the given array