class_docstr: Writer class for 'vad.scp'
  
  Examples:
      key1 0:1.2000
      key2 3.0000:4.5000 7.0000:9:0000
      ...
  
      >>> writer = VADScpWriter('./data/vad.scp')
      >>> writer['aa'] = list of tuples
      >>> writer['bb'] = list of tuples
class_docstr_tok: ["Writer","class","for","'vad.scp'","Examples",":","key1","0:1.2000","key2","3.0000:4.5000","7.0000:9:0000","...",">",">",">","writer","=","VADScpWriter","(","'.\/data\/vad.scp","'",")",">",">",">","writer","[","'aa","'","]","=","list","of","tuples",">",">",">","writer","[","'bb","'","]","=","list","of","tuples"]
code: def __setitem__(self, key: str, value):
      assert (
          key not in self.data.keys()
      ), "found duplicate key (key: {}) in your vad values".format(key)
      assert isinstance(value, List), type(value)
  
      output_str = []
      for v in value:
          assert (
              len(v) == 2
          ), "each vad tuple should contains exact the start time and end time"
          output_str.append("{.4f}:{}".format(v[0], v[1]))
      output_str = " ".join(output_str)
  
      self.fscp.write(f"{key} {output_str}\n")
  
      # Store the file path
      self.data[key] = str(output_str)
  
file_path: espnet/espnet2/fileio/vad_scp.py
imports: import collections.abc
  from pathlib import Path
  from typing import List, Union
  import numpy
  from typeguard import check_argument_types
  from espnet2.fileio.read_text import read_2columns_text
label_desc: Use image node_id 2 for calling the VADScpWriter obj's underlying member method code with example usage: obj.__setitem__(key, value) without return types