code: def load_method_state(self, path: pathlib.Path) -> None:
      self.raise_exception("load_method_state")
      checkpoint_path = path.joinpath("method_state")
      with checkpoint_path.open("r") as f:
          state = json.load(f)
          self.max_trials = state["max_trials"]
          self.max_concurrent_trials = state["max_concurrent_trials"]
          self.max_length = state["max_length"]
          self.created_trials = state["created_trials"]
          self.pending_trials = state["pending_trials"]
          self.closed_trials = state["closed_trials"]
  
          if self.test_type == "core_api":
              # ony restore exception points for core_api searcher tests;
              # local searcher is providing new exception point on resumption,
              # and it shouldn't be overridden
              self.exception_points = state["exception_points"]
  
imports: import dataclasses
  import json
  import logging
  import pathlib
  import pickle
  import random
  import sys
  import uuid
  from typing import Any, Dict, List, Optional, Set
  from urllib3 import connectionpool
  from determined import searcher
label_desc: Use image node_id 11 for calling the RandomSearchMethod obj's underlying member method code with example usage: obj.load_method_state(path) without return types