class_docstr: Serializable base class establishing
  :meth:`~nupic.serializable.Serializable.read` and
  :meth:`~nupic.serializable.Serializable.write` abstract methods,
  :meth:`.readFromFile` and :meth:`.writeToFile` concrete methods to support
  serialization with Cap'n Proto.
docstr: Create a new object initialized from Cap'n Proto obj.
  
  Note: This is an abstract method.  Per abc protocol, attempts to subclass
  without overriding will fail.
  
  :param proto: Cap'n Proto obj
  :return: Obj initialized from proto
docstr_tok: ["Create","a","new","object","initialized","from","Cap'n","Proto","obj",".","Note",":","This","is","an","abstract","method",".","Per","abc","protocol",",","attempts","to","subclass","without","overriding","will","fail",".",":","param","proto",":","Cap'n","Proto","obj",":","return",":","Obj","initialized","from","proto"]
code: def read(cls, proto):
      """
      Create a new object initialized from Cap'n Proto obj.
  
      Note: This is an abstract method.  Per abc protocol, attempts to subclass
      without overriding will fail.
  
      :param proto: Cap'n Proto obj
      :return: Obj initialized from proto
      """
      pass
  
file_path: nupic-legacy/src/nupic/serializable.py
imports: from abc import ABCMeta, abstractmethod
label_desc: Use image node_id 2 for calling the Serializable obj's underlying member method code with example usage: obj.read(cls, proto) without return types