code: def __init__(
      self,
      max_trials: int,
      max_concurrent_trials: int,
      max_length: int,
      test_type: str = "core_api",
      exception_points: Optional[List[str]] = None,
      metric_as_dict: bool = False,
  ) -> None:
      self.max_trials = max_trials
      self.max_concurrent_trials = max_concurrent_trials
      self.max_length = max_length
  
      self.test_type = test_type
      self.exception_points = exception_points
      self.metric_as_dict = metric_as_dict
  
      self.created_trials = 0
      self.pending_trials = 0
      self.closed_trials = 0
      self.tried = set()
  
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 1 to create a new RandomSearchMethod object from inherited base classes: searcher with example: obj = RandomSearchMethod(max_trials, max_concurrent_trials, max_length, test_type, exception_points, metric_as_dict)