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 __setitem__(self, key, value):
      assert isinstance(value, np.ndarray), type(value)
      p = self.dir / f"{key}.npy"
      p.parent.mkdir(parents=True, exist_ok=True)
      np.save(str(p), value)
      self.fscp.write(f"{key} {p}\n")
  
      # Store the file path
      self.data[key] = str(p)
  
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 3 for calling the NpyScpWriter obj's underlying member method code with example usage: obj.__setitem__(key, value) without return types