code: def save_method_state(self, path: Path) -> None:
      self.raise_exception("save_method_state")
      checkpoint_path = path.joinpath("method_state")
      with checkpoint_path.open("wb") as f:
          pickle.dump(self.asha_search_state, f)
  
      exception_path = path.joinpath("exceptions")
      with exception_path.open("wb") as f:
          pickle.dump(self.exception_points, f)
  
imports: import dataclasses
  import json
  import logging
  import pickle
  import random
  import sys
  import uuid
  from pathlib import Path
  from typing import Any, Dict, List, Optional, Set
  from urllib3.connectionpool import HTTPConnectionPool, MaxRetryError
  from determined import searcher
label_desc: Use image node_id 11 for calling the ASHASearchMethod obj's underlying member method code with example usage: obj.save_method_state(path) without return types