class_docstr: Writer class for a scp file of numpy file.
  
  Examples:
      key1 /some/path/a.npy
      key2 /some/path/b.npy
      key3 /some/path/c.npy
      key4 /some/path/d.npy
      ...
  
      >>> writer = NpyScpWriter('./data/', './data/feat.scp')
      >>> writer['aa'] = numpy_array
      >>> writer['bb'] = numpy_array
code: def __init__(
      self, outdir: Union[Path, str], scpfile: Union[Path, str]
  ):
      assert check_argument_types()
      self.dir = Path(outdir)
      self.dir.mkdir(parents=True, exist_ok=True)
      scpfile = Path(scpfile)
      scpfile.parent.mkdir(parents=True, exist_ok=True)
      self.fscp = scpfile.open("w", encoding="utf-8")
  
      self.data = {}
  
imports: import collections.abc
  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 1 to create a new NpyScpWriter object  with example: obj = NpyScpWriter(outdir, scpfile)