class_docstr: The serializer that utilizes :func:`nni.dump` and :func:`nni.load` to save and load data.
  
  This serializer should work in cases where strategies have no complex objects in their states.
  Since it uses :func:`nni.dump`, it resorts to binary format when some part of the data is not JSON-serializable.
class_docstr_tok: ["The","serializer","that","utilizes",":","func",":","`","nni.dump","`","and",":","func",":","`","nni.load","`","to","save","and","load","data",".","This","serializer","should","work","in","cases","where","strategies","have","no","complex","objects","in","their","states",".","Since","it","uses",":","func",":","`","nni.dump","`",",","it","resorts","to","binary","format","when","some","part","of","the","data","is","not","JSON-serializable","."]
code: def load(self, path: Path):
      import nni
  
      path = _find_path_with_prefix(path, self.suffix)
      with path.open() as f:
          return nni.load(fp=f)
  
file_path: nni/nni/nas/utils/serializer.py
imports: from __future__ import annotations
  import logging
  from pathlib import Path
  from typing import Any, ClassVar, Type, cast
label_desc: Use image node_id 2 for calling the JsonSerializer obj's underlying member method code with example usage: obj.load(path) and returns: nni