code: def restore(cls, path=None):
          
  
          if path is None:
              path = cls._PATH_API_CONTEXT_DEFAULT
  
          with open(path, cls._FILE_MODE_READ) as file_:
              return cls.from_json(file_.read())
docs: :type path: str
  
          :rtype: ApiContext