class_docstr: Writer class to create kaldi like data directory.
  
  Examples:
      >>> with DatadirWriter("output") as writer:
      ...     # output/sub.txt is created here
      ...     subwriter = writer["sub.txt"]
      ...     # Write "uttidA some/where/a.wav"
      ...     subwriter["uttidA"] = "some/where/a.wav"
      ...     subwriter["uttidB"] = "some/where/b.wav"
class_docstr_tok: ["Writer","class","to","create","kaldi","like","data","directory",".","Examples",":",">",">",">","with","DatadirWriter","(","``","output","''",")","as","writer",":","...","#","output\/sub.txt","is","created","here","...","subwriter","=","writer","[","``","sub.txt","''","]","...","#","Write","``","uttidA","some\/where\/a.wav","''","...","subwriter","[","``","uttidA","''","]","=","``","some\/where\/a.wav","''","...","subwriter","[","``","uttidB","''","]","=","``","some\/where\/b.wav","''"]
code: def __enter__(self):
      return self
  
file_path: espnet/espnet2/fileio/datadir_writer.py
imports: import warnings
  from pathlib import Path
  from typing import Union
  from typeguard import check_argument_types, check_return_type
label_desc: Use image node_id 2 for calling the DatadirWriter obj's underlying member method code with example usage: obj.__enter__() and returns: self