code: def test_prediction_logging(self):
      self.model.fit()
      self.model.predict(
          self.df, log_predictions=True, key_cols=["a", "b"]
      )
      prediction_metadata = lore.metadata.Prediction.first(
          fitting_id=self.model.fitting.id
      )
      self.assertIsNotNone(prediction_metadata)
  
file_path: lore/tests/unit/test_metadata.py
imports: import unittest
  import tests.mocks.models_other
  import lore.metadata
  import datetime
label_desc: Use image node_id 2 for calling the TestPredictionLogging obj's underlying member method code with example usage: obj.test_prediction_logging() without return types