code: def __init__(
      self,
      expt_dir,
      covar="Matern52",
      mcmc_iters=10,
      pending_samples=100,
      noiseless=False,
  ):
      self.cov_func = getattr(gp, covar)
      self.locker = Locker()
      self.state_pkl = os.path.join(expt_dir, self.__module__ + ".pkl")
  
      self.mcmc_iters = int(mcmc_iters)
      self.pending_samples = pending_samples
      self.D = -1
      self.hyper_iters = 1
      self.noiseless = bool(int(noiseless))
  
      self.noise_scale = 0.1  # horseshoe prior
      self.amp2_scale = 1  # zero-mean log normal prior
      self.max_ls = 2  # top-hat prior on length scales
  
      self.amp2 = None
      self.ls = None
      self.noise = None
      self.mean = None
  
imports: import os
  from ..None import gp
  import sys
  from ..None import util
  import tempfile
  import numpy
  import numpy.random
  import scipy.linalg
  import scipy.stats
  import scipy.optimize
  import pickle
  from ..Locker import *
  from ..helpers import *
  import logging
label_desc: Use image node_id 1 to create a new GPEIChooser object  with example: obj = GPEIChooser(expt_dir, covar, mcmc_iters, pending_samples, noiseless)