class_docstr: Writer class for 'midi.scp'
  
  Examples:
      key1 /some/path/a.musicxml
      key2 /some/path/b.musicxml
      key3 /some/path/c.musicxml
      key4 /some/path/d.musicxml
      ...
  
      >>> writer = XMLScpWriter('./data/', './data/xml.scp')
      >>> writer['aa'] = xml_obj
      >>> writer['bb'] = xml_obj
class_docstr_tok: ["Writer","class","for","'midi.scp'","Examples",":","key1","\/some\/path\/a.musicxml","key2","\/some\/path\/b.musicxml","key3","\/some\/path\/c.musicxml","key4","\/some\/path\/d.musicxml","...",">",">",">","writer","=","XMLScpWriter","(","'.\/data\/","'",",","'.\/data\/xml.scp","'",")",">",">",">","writer","[","'aa","'","]","=","xml_obj",">",">",">","writer","[","'bb","'","]","=","xml_obj"]
code: def __enter__(self):
      return self
  
imports: import collections.abc
  import json
  from pathlib import Path
  from typing import Union
  import numpy
  from typeguard import check_argument_types
  from espnet2.fileio.read_text import read_2columns_text
label_desc: Use image node_id 4 for calling the XMLWriter obj's underlying member method code with example usage: obj.__enter__() and returns: self