code: def _read_function(schema):
      
      def func(
          filename=None,
          data=None,
          add_node_labels=True,
          use_uids=True,
          **kwargs):
          # Use generic write class to write data.
          return _read(
              filename=filename,
              data=data,
              schema=schema,
              add_node_labels=add_node_labels,
              use_uids=use_uids,
              **kwargs
          )
      # Update docs
      func.__doc__ = _read_doc_template(schema)
      return func
docs: Add a write method for named schema to a class.