code: def _get_model(self, db, experiment):
      modeldir = db.get_artifact(experiment.artifacts["modeldir"])
      hdf5_files = [
          (p, os.path.getmtime(p))
          for p in glob.glob(modeldir + "/*.hdf*")
          + glob.glob(modeldir + "/*.h5")
      ]
      if any(hdf5_files):
          # experiment type - keras
          import keras
  
          last_checkpoint = max(hdf5_files, key=lambda t: t[1])[0]
          return keras.models.load_model(last_checkpoint)
  
      if self.info.get("type") == "tensorflow":
          raise NotImplementedError
  
      raise ValueError("Experiment type is unknown!")
  
imports: import unittest
  import os
  import shutil
  import tempfile
  import uuid
  import subprocess
  import time
  from timeout_decorator import timeout
  import traceback
  import numpy
  import glob
  from studio import model
  from studio.util import logs
  from studio.queues.local_queue import LocalQueue, get_local_queue_lock
  from studio.util.util import sixdecode, retry
  from studio.extra_util import has_aws_credentials
  from env_detect import on_gcp, on_aws
label_desc: Use image node_id 9 for calling the LocalWorkerTest obj's underlying member method code with example usage: obj._get_model(db, experiment) and returns: keras