class_docstr: DataSource which loads data from CoNLL-U file.
class_docstr_tok: ["DataSource","which","loads","data","from","CoNLL-U","file","."]
code: def from_config(
      cls, config: Config, schema: Dict[str, Type], **kwargs
  ):
      args = config._asdict()
      language = args.pop("language")
      train_filename = args.pop("train_filename")
      test_filename = args.pop("test_filename")
      eval_filename = args.pop("eval_filename")
      train_file = (
          SafeFileWrapper(
              train_filename, encoding="utf-8", errors="replace"
          )
          if train_filename
          else None
      )
      test_file = (
          SafeFileWrapper(
              test_filename, encoding="utf-8", errors="replace"
          )
          if test_filename
          else None
      )
      eval_file = (
          SafeFileWrapper(
              eval_filename, encoding="utf-8", errors="replace"
          )
          if eval_filename
          else None
      )
      return cls(
          language=language,
          train_file=train_file,
          test_file=test_file,
          eval_file=eval_file,
          schema=schema,
          **args,
          **kwargs,
      )
  
file_path: pytext/pytext/data/sources/conllu.py
imports: import threading
  from typing import Dict, List, Optional, Type
  from pytext.data.sources.data_source import RootDataSource, SafeFileWrapper
label_desc: Use image node_id 1 for calling the CoNLLUPOSDataSource obj's underlying member method code with example usage: obj.from_config(cls, config, schema) and returns: cls