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 before_generating_trial_model(self, trial_id, model_dir):
      trial_run = metadata_store_pb2.Execution()
      trial_run.type_id = self._trial_type_id
      trial_run.properties["id"].int_value = trial_id
      trial_run.properties["state"].string_value = "RUNNING"
      trial_run.properties["serialized_data"].string_value = ""
      trial_run.properties["model_dir"].string_value = model_dir
      trial_run.properties["evaluation"].string_value = ""
      run_id = self._store.put_executions([trial_run])[0]
      self._trial_id_to_run_id[trial_id] = (run_id, trial_run)
      return
  
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 3 for calling the MLMetaData obj's underlying member method code with example usage: obj.before_generating_trial_model(trial_id, model_dir) without return types