code: def test_report(self):
      connection_config = metadata_store_pb2.ConnectionConfig()
      connection_config.sqlite.filename_uri = os.path.join(
          FLAGS.test_tmpdir, "2"
      )
      connection_config.sqlite.connection_mode = 3
      handler = ml_metadata_db.MLMetaData(
          None, None, None, connection_config=connection_config
      )
      handler.before_generating_trial_model(
          trial_id=1, model_dir="/tmp/1"
      )
      handler.report(eval_dictionary={"loss": 0.5}, model_dir="/tmp/1")
      output = handler.get_completed_trials()
      self.assertLen(output, 1)
      output = output[0]
      self.assertEqual(output.id, 1)
      self.assertEqual(output.status, "COMPLETED")
      self.assertEqual(output.model_dir, "/tmp/1")
      self.assertEqual(output.final_measurement.objective_value, 0.5)
  
file_path: model_search/model_search/metadata/ml_metadata_db_test.py
imports: import os
  from absl import flags
  from absl.testing import absltest
  from model_search.metadata import ml_metadata_db
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 2 for calling the MlMetadataTest obj's underlying member method code with example usage: obj.test_report() without return types