code: def _write_function(schema):
      
      def func(
          data,
          filename=None,
          schema=schema,
          id_col='uid',
          sequence_col='sequence',
          extra_data=None,
          alphabet=None,
          **kwargs):
          # Use generic write class to write data.
          return _write(
              data,
              filename=filename,
              schema=schema,
              id_col=id_col,
              sequence_col=sequence_col,
              extra_data=extra_data,
              alphabet=alphabet,
              **kwargs
          )
      # Update docs
      func.__doc__ = _write_doc_template(schema)
      return func
docs: Add a write method for named schema to a class.