class_docstr: An object which handles communicating with metadata db through MLMD.
class_docstr_tok: ["An","object","which","handles","communicating","with","metadata","db","through","MLMD","."]
code: def get_completed_trials(self):
      trials = self._store.get_executions_by_type("Trial")
      trials = [
          self._convert_to_trial_object(t)
          for t in trials
          if t.properties["state"].string_value == "COMPLETED"
      ]
      return trials
  
file_path: model_search/model_search/metadata/ml_metadata_db.py
imports: import json
  import os
  import random
  from absl import flags
  from absl import logging
  from model_search.metadata import metadata
  from model_search.metadata import trial
  from ml_metadata import metadata_store
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 5 for calling the MLMetaData obj's underlying member method code with example usage: obj.get_completed_trials() and returns: trials