docstr: Initialize each attributes with the corresponding keyword arg value
  or a default of None
docstr_tok: ["Initialize","each","attributes","with","the","corresponding","keyword","arg","value","or","a","default","of","None"]
code: def _init_attrs(self, **kwargs):
      """
      Initialize each attributes with the corresponding keyword arg value
      or a default of None
      """
  
      attrs = self.__class__.__slots__
      public_attrs = [attr[1:] for attr in attrs]
      invalid_keys = set(kwargs.keys()) - set(public_attrs)
  
      if invalid_keys:
          raise ValueError(
              """found %s invalid keyword arguments, please only
                                  use %s"""
              % (tuple(invalid_keys), public_attrs)
          )
  
      for attr in attrs:
          setattr(self, attr, kwargs.get(attr[1:], None))
  
imports: from __future__ import division, print_function, absolute_import
  import os
  import sys
  from numpy import asarray, real, imag, conj, zeros, ndarray, concatenate, ones, can_cast
  from numpy.compat import asbytes, asstr
  from scipy._lib.six import string_types
  from scipy.sparse import coo_matrix, isspmatrix
label_desc: Use image node_id 20 for calling the MMFile obj's underlying member method code with example usage: obj._init_attrs() without return types